Set up Agent Monitoring
Needs Management Console 3.0. Its images and
docker-compose.agents.ymlare published in the deployment repository with the 3.0 release; the current public release (2.4.0) does not include Agent Monitoring.
Agent Monitoring shows your servers live: heartbeat, CPU, memory, disk, uptime, the state of system and
application services, events and alerts. Each server runs the atglance agent (CLI 3.0 or later), which
keeps one outbound connection to the console. No inbound port is opened on the servers.
It is a premium feature: console 3.0.0 or later, and a licence that includes Agent Monitoring (Premium Features, or a custom licence).

1. Start the Agent Monitoring containers
Agent Monitoring runs in its own containers, next to the console. In the console's folder, add two values to
.env (long random values, once):
ATGLANCE_AGENT_GATEWAY_SECRET=$(openssl rand -hex 32)
TSDB_PASSWORD=$(openssl rand -hex 24)
Then start the console with the Agent Monitoring overlay:
docker compose -f docker-compose.yml -f docker-compose.agents.yml up -d
This adds four containers:
| Container | What it does |
|---|---|
ce-atglance-agent-monitoring |
The Servers pages and the agents API |
ce-atglance-agent-gateway |
Takes the agents' connections (/agent/v1/connect) |
ce-atglance-agent-worker |
Stores what the agents send |
ce-atglance-tsdb |
The time series (metrics, check results, heartbeats) |
The installer and the updater keep this overlay once it is in use. If the monitoring service is down, the Servers pages say so and the rest of the console keeps working.
2. Switch it on in Plugins
Site Settings › Plugins › Agent Monitoring › Enable. The card shows Enabled and Open when it is on.

3. Choose the settings
Site Settings › Agents (super admin). The defaults work; change them when needed:
- Communication: Bidirectional (the console can push configuration and ask servers for details) or Report only (servers only send).
- Server heartbeat: interval (60 s), delayed after (90 s), offline after (180 s).
- Watched services, notifications and data retention.

4. Install the agent on each server
On the server (Linux with systemd; Windows and macOS are supported by CLI 3.0 too):
-
Install the CLI 3.0 or later. Download the package for your system from atglance.live (Dashboard › Downloads), then for example on Ubuntu or Debian:
sudo apt install ./atglance_3.1.0_amd64.deb atglance version -
Log in with an API key from the console (Settings › API keys). Use the address the server reaches: the console's API gateway on port 8002, or its HTTPS address:
sudo atglance login --server http://<console-address>:8002 -
Register the server, then install and start the agent:
sudo atglance system register sudo atglance agent install sudo atglance agent start -
Check the connection:
sudo atglance agent status # Service: running (starts at boot) # Connection: connected
The agent starts at boot and reconnects by itself after a network or console restart.
Servers without a public IP, or that cannot reach the console? They do not need a public IP: they connect
out. If they cannot reach the console's address at all (for example private VMs behind a bastion), use the
Reverse tunnel: the console makes itself available on each server's
127.0.0.1:8002, and you log in with --server http://127.0.0.1:8002.
5. Watch your servers
- Servers (top bar): every server with its heartbeat, uptime, CPU and memory. Tabs for online, offline and paused servers; click a server for its details and charts.
- Service heartbeat: the system and application services of every server, running or stopped.
- Alerts: open and recent alerts; acknowledge or resolve them.
- Requests: details asked from servers (service status, disk usage, top processes, ports, diagnostics).

Troubleshooting
| Problem | Check |
|---|---|
agent status shows not connected |
The server reaches the console address from atglance login on port 8002: curl -s -o /dev/null -w '%{http_code}\n' http://<console-address>:8002/api/v1/meta |
| Server shows Pending | Registered, but the agent has not connected yet: sudo atglance agent start, then sudo atglance agent logs -n 50 |
| Server shows Paused | Monitoring is turned off for that server: see Turn Agent Monitoring on or off |
| The Servers page says Monitoring service unavailable | ce-atglance-agent-monitoring is stopped: docker ps, or docker exec ce-atglance-controller php artisan agents:plugin status |
| "Agent Monitoring is not included in your licence" | The licence needs the Agent Monitoring feature (Settings › Licence) |
See also: