The IntegrationGuard agent reports what a Linux server is doing — CPU, memory, disks, network, load, systemd services, processes and Docker containers — to your IntegrationGuard installation over HTTPS. It is one static binary without dependencies (about 6.5 MB, about 8 MB of memory while running), installed as an unprivileged systemd service. The console turns its reports into charts, a status (online, degraded, offline) and alerts.
1. Requirements
| Host | any Linux with systemd on x86-64 (amd64) or 64-bit ARM (arm64) |
| Network | outbound HTTPS from the host to your installation: https://IG_SERVER_NAME/api/v1/agent/report (and /api/v1/agent/download/ to download the binary) |
| Rights | sudo for the installation; the agent itself runs without privileges |
| Containers (optional) | Docker Engine with its socket at /var/run/docker.sock |
2. What it collects
| Data | Source | Notes |
|---|---|---|
| CPU, load average, memory, swap, uptime | /proc/stat, /proc/loadavg, /proc/meminfo, /proc/uptime |
CPU is the busy share since the previous sample |
| Disk usage and inodes | /proc/self/mounts and statfs |
Local file systems only, one per device; the percentage matches df |
| Network traffic | /proc/net/dev |
Bytes per second; loopback and container interfaces are skipped |
| Processes | /proc/<pid>/comm |
The total, and the count of each watched name. Command lines and environments are never read |
| Services | systemctl show |
Only the units watched in the console |
| Containers | Docker Engine API on /var/run/docker.sock (GET requests) |
Only when container monitoring was allowed at installation |
What to watch (services, processes, containers), how often to report and the thresholds are set on the agent's page in the console; every answer of the server carries them, so nothing is edited on the host.
3. Install
- In the console, open Infrastructure → Linux agents → Register agent, choose the project and environment and save. The console shows the agent's token once, with the commands for the host.
- On the host, run the commands the console shows (they contain your server address and the binary's SHA-256):
curl -fsSLo integrationguard-agent https://monitoring.example.com/api/v1/agent/download/integrationguard-agent-linux-amd64
echo "<sha256 shown in the console> integrationguard-agent" | sha256sum -c -
chmod +x integrationguard-agent
echo 'iga_…' | sudo ./integrationguard-agent install --server https://monitoring.example.com --token-stdin
install tests the connection and the token first, then creates the system user integrationguard-agent, copies
the binary to /usr/local/bin, writes /etc/integrationguard/agent.json (mode 0640, owned by root, readable by the
agent's group) and starts the systemd service integrationguard-agent.service. The agent's page in the console
shows its first report about a minute later.
Options:
--docker— allow container monitoring. The agent user joins thedockergroup, which is root-equivalent on most hosts; leave it off unless you need container states.--ca-file PATH— trust a private certificate authority instead of the system trust store. With the Customer Edition'sself-signedcertificate, copy itstls/fullchain.pemto the host and pass that file.--pin SHA256— additionally pin the server's public key (SHA-256 of the SubjectPublicKeyInfo, hex or Base64):openssl s_client -connect monitoring.example.com:443 </dev/null | openssl x509 -pubkey -noout | openssl pkey -pubin -outform der | openssl dgst -sha256--no-start(install without starting),--skip-check(install without testing the connection).
The token is never accepted as an argument (--token is refused): it would be visible in the shell history and the
process list. Use --token-stdin, --token-file or the IG_AGENT_TOKEN environment variable.
4. Commands
| Command | Purpose |
|---|---|
integrationguard-agent check |
Test the connection and the token; prints the agent's name and what it watches |
integrationguard-agent once --dry-run |
Collect one sample and print the report (nothing is sent) |
integrationguard-agent once |
Collect one sample and send it |
integrationguard-agent run |
Run the agent (what the service does) |
integrationguard-agent set-token --token-stdin |
Replace the token after a rotation in the console: tests it, writes it and restarts the service (--no-restart, --skip-check) |
integrationguard-agent uninstall [--purge] |
Remove the service (with --purge also the configuration and the user) |
integrationguard-agent version |
Print the version |
Logs go to the journal: journalctl -u integrationguard-agent -f.
5. Operations
Rotate the token. On the agent's page, Rotate token shows a new token once and stops the old one at once. On the host:
echo 'iga_…' | sudo integrationguard-agent set-token --token-stdin
The other settings, the file's mode and its owner stay as they are, and the service restarts.
Update the agent. Download and verify the new binary as in section 3, then replace the installed one:
sudo install -m 0755 integrationguard-agent /usr/local/bin/integrationguard-agent
sudo systemctl restart integrationguard-agent
Pause, remove. Pausing the agent in the console makes the server refuse its reports (and resolves its alerts)
until you resume it. To remove an agent, delete it in the console (its token stops working and its metrics are
removed) and run sudo integrationguard-agent uninstall --purge on the host.
6. Security
- Reports go over HTTPS only (TLS 1.2+, certificate verified; plain
http://is accepted for loopback test servers only). Redirects are refused, so the token is only ever sent to the configured server. - The token authenticates one agent; the server stores only its SHA-256 and compares in constant time. Rotating or deleting the agent locks the old token out immediately.
- The configuration file must not be readable by other users; the agent refuses to start otherwise.
- The service runs as an unprivileged user without capabilities, with
NoNewPrivileges, a read-only view of the system (ProtectSystem=strict,ProtectHome=read-only), private/tmpand devices, and only Unix and IP sockets. - Samples wait in memory (up to
bufferSize, 1440 by default — one day at one per minute) while the server cannot be reached; the server ignores samples it already stored, so retries never duplicate data.
7. Configuration file
/etc/integrationguard/agent.json; install writes only the server, the token and the TLS options. Every key:
{
"server": "https://monitoring.example.com",
"token": "iga_…",
"caFile": "",
"pinSha256": "",
"intervalSeconds": 60,
"dockerSocket": "/var/run/docker.sock",
"bufferSize": 1440
}
intervalSeconds applies until the server sends the interval set in the console. IG_AGENT_TOKEN and
IG_AGENT_SERVER override the file. Unknown keys are refused.
8. Troubleshooting
| Symptom | Check |
|---|---|
| The agent stays Waiting in the console | it never reported: sudo integrationguard-agent check on the host; systemctl status integrationguard-agent |
the server rejected the token |
the token was rotated or the agent deleted: rotate it and run set-token (section 5) |
cannot reach …: x509: certificate signed by unknown authority |
the server's certificate is not trusted by the host: install with --ca-file (section 3) |
| The agent turns Offline | the host is down, the service stopped (journalctl -u integrationguard-agent) or the host cannot reach the server on port 443 |
configuration … is accessible by other users |
sudo chmod 640 /etc/integrationguard/agent.json |
| The console reports a clock difference | enable time synchronization on the host (timedatectl set-ntp true); samples are corrected meanwhile |
| Containers are not reported | the agent was installed without --docker: rotate its token, run the install command again with --docker (the agent restarts with the new token and keeps its history), then allow containers in the agent's settings |