Infrastructure Monitoring

Track the health of your servers, containers, and virtual machines. Monitor CPU, memory, disk I/O, and network throughput with a high-fidelity, low-footprint bash agent that securely streams outbound-only telemetry.

Prerequisites

  • A Linux-based operating system (Ubuntu, Debian, CentOS, RHEL, Alpine).
  • Root or sudo access to the server.
  • Outbound TCP access to port 443.

1. Dashboard Configuration

Before injecting code into your application, you must provision an API key from the Senzor dashboard.

1

Create Server Profile

In the Senzor dashboard, go to 'Servers' and register a new machine.

2

Copy Installation String

The dashboard will generate a one-line cURL command containing your unique Server ID and API Key.

3

Execute on Host

SSH into your server and paste the command. The script will automatically install itself as a background systemd service.

2. SDK Installation

Select your environment below to view the initialization code.

curl -fsSLO https://raw.githubusercontent.com/senzops/server-agent/main/install_agent.sh
chmod +x install_agent.sh
sudo bash install_agent.sh

The interactive installer guides you through configuration, validates inputs, and starts the agent as a Docker container with automatic restarts.

Troubleshooting & Edge Cases

Agent installs but shows 'Offline' in dashboard.

Check the container logs by running `docker logs -f senzor`. Verify your SERVER_ID and API_KEY are correct and the API_ENDPOINT is reachable.

Install script fails with a syntax error.

The script requires Unix (LF) line endings. If you downloaded it on Windows, run: sed -i 's/\r$//' install_agent.sh