Zum Hauptinhalt springen

๐Ÿ“– Server Agents Overview

Monitron Server Agents are lightweight scripts that run on your servers and report system metrics back to your Monitron instance. They give you full visibility into CPU, memory, disk, network, and load averages.


๐Ÿ”ง Funktionsweiseโ€‹

Your Server                          Monitron
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” HTTP POST โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚ Agent Script โ”‚ โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ†’ โ”‚ /agent/reportโ”‚
โ”‚ (cron: every 1m)โ”‚ JSON payload โ”‚ โ”‚
โ”‚ โ”‚ โ”‚ Store metricsโ”‚
โ”‚ Collects: โ”‚ โ”‚ Update statusโ”‚
โ”‚ โ€ข CPU โ”‚ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
โ”‚ โ€ข Memory โ”‚
โ”‚ โ€ข Disk โ”‚
โ”‚ โ€ข Network โ”‚
โ”‚ โ€ข Load โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
  1. An agent script runs on your server (via cron or Task Scheduler)
  2. It collects system metrics
  3. It sends them as JSON to your Monitron instance
  4. Monitron stores the metrics and updates the monitor status
  5. If the agent stops reporting for 5+ minutes, Monitron marks the server as Down

๐Ÿ“Š Erfasste Metrikenโ€‹

MetrikLinuxWindows
CPU Usage %โœ… via topโœ… via WMI
CPU I/O Waitโœ…โŒ (not available on Windows)
Memory Usage %โœ… via freeโœ… via WMI
Memory Total (MB)โœ…โœ…
Swap Usage %โœ…โœ…
Disk Usage (per mount)โœ… via dfโœ… via WMI
Network RX/TX (bytes)โœ… via /sys/class/netโœ… via Get-NetAdapterStatistics
Load Averages (1/5/15m)โœ… via /proc/loadavgโŒ (uses CPU% instead)
OS Nameโœ…โœ…
Hostnameโœ…โœ…
Kernel Versionโœ…โœ…

๐Ÿš€ Schnelleinrichtungโ€‹

  1. Create a Server Agent in the Monitron dashboard (Monitors โ†’ New โ†’ Server Agent)
  2. Copy the Agent Key that's generated
  3. Deploy the agent script on your server (Linux or Windows)
  4. Configure the cron/scheduler to run every minute
  5. Within a minute, your server appears in the dashboard! โœ…

๐Ÿ”’ Sicherheitโ€‹

  • The agent authenticates using a unique Agent Key
  • Communication is over HTTPS (recommended)
  • The agent only sends data โ€” it never receives commands
  • No ports need to be opened on the monitored server