Skip to Content
πŸŽ‰ EZMON v0.1.19 is released. Visit ezmon.web.id β†’
InstallationAgent Setup

EZMON Agent Setup

The EZMON Agent is a lightweight, statically compiled Go binary (CGO_ENABLED=0) running in the background of your Linux hosts. It monitors system performance metrics and pushes heartbeat payloads to the Hub every 30 seconds.


Generate a One-Time Registration Token

Go to EZMON Dashboard β†’ Agents β†’ click Add Agent. Copy the temporary One-Time Registration Token (formatted as reg_...).

Registration tokens expire in 5 minutes to ensure high security and prevent token exposure in terminal command logs (.bash_history).

Run the Installation Script

Execute the following command on your target Linux machine (supports Alpine, Ubuntu, Debian, CentOS, AlmaLinux, RHEL, Arch Linux):

curl -fsSL https://ezmon.web.id/install.sh | bash

The installer interactively prompts for your One-Time Registration Token (reg_...).

The install.sh script automatically:

  • Detects host architecture (amd64 or arm64)
  • Fetches official SHA-256 checksums from GitHub Releases and verifies binary integrity
  • Gracefully stops and replaces binary at /usr/local/bin/ezmon-agent
  • Configures and enables the systemd unit service (ezmon-agent.service)

Verify Service Status

systemctl status ezmon-agent

Your server will show up as ONLINE in the dashboard within a few seconds.


πŸ”„ Upgrading Agents

When a new Hub version is released, the dashboard displays an Update Available badge and an Update Agent button on outdated nodes.

Method 1: Via Dashboard Upgrade Dialog

  1. Click Update Agent on the agent detail toolbar in your dashboard.
  2. Copy the fresh One-Time Registration Token auto-generated inside the dialog.
  3. Re-run install.sh in your host terminal. The dialog automatically detects version sync and closes upon successful upgrade.

Method 2: Via Manual Terminal Command

Re-run the install.sh script with a fresh registration token. The script stops the old daemon, executes daemon-reload, and restarts the service with the updated binary.


πŸ“¦ Manual Setup (Without Script)

If you prefer downloading static binaries manually:

wget https://github.com/efzynx/ez-mon/releases/latest/download/ezmon-agent-linux-amd64 chmod +x ezmon-agent-linux-amd64 sudo mv ezmon-agent-linux-amd64 /usr/local/bin/ezmon-agent EZMON_SERVER_URL=https://your-hub.vercel.app \ EZMON_AGENT_TOKEN=YOUR_AGENT_TOKEN \ ezmon-agent

πŸ“Š Collected Metrics

MetricProviderData
CPUgopsutil/cpuTotal usage %, per-core CPU array
Memorygopsutil/memUsed MB, Total MB, Usage %
Diskgopsutil/diskUsed GB, Total GB, Usage % (root /)
Load Averagegopsutil/loadLoad 1m, 5m, 15m
Networkgopsutil/netBytes sent & bytes received
DockerDocker Socket / CLICount of active Docker containers

Agent binaries are statically compiled without glibc dependencies (CGO_ENABLED=0), ensuring total compatibility across all Linux distributions.

Last updated on