Skip to content

Internal Monitoring (Host Agent)

Monitor resource usage (CPU, memory, disk, network) on servers and VMs by periodically pushing metrics from the Manako CLI. Unlike external polling, this is a push-based approach where the server sends metrics to Manako.

External Monitoring (HTTP/TCP/Ping, etc.)Internal Monitoring (Host Agent)
DirectionManako → ServerServer → Manako
What it checksAvailability, response, port connectivityCPU, memory, disk, network
FirewallInbound access requiredOutbound only required
How it runsManako checks on a scheduleCLI runs from server cron

manako-agent is a daemon-mode standalone binary. No Node.js or npm required — runs as a systemd / launchd / Windows Service.

Terminal window
# One-liner install + service registration
curl -fsSL https://get.manako.dev/agent | sh -s -- <AGENT_TOKEN>
# System-wide install (requires sudo)
curl -fsSL https://get.manako.dev/agent | sh -s -- <AGENT_TOKEN> --system

After installation, verify with manako-agent agent status.


  1. Create a monitor in the dashboard

    Select Internal Monitoring (Host Agent) from “New Monitor” in the Manako dashboard. Alternatively, create it from the CLI:

    Terminal window
    manako monitors add <server-name> -t host_agent -n "prod-web-01"

    After creation, the agent token is displayed. This token is only shown once — save it somewhere safe.

  2. Install the CLI

    Terminal window
    npm install -g manako
  3. Test metrics push

    Terminal window
    manako metrics push --token <agent-token> --dry-run

    The --dry-run flag collects metrics and prints the JSON without actually sending it. Once everything looks good, run without --dry-run:

    Terminal window
    manako metrics push --token <agent-token>
  4. Configure cron

    Open crontab -e on your server and add an entry to run every 5 minutes:

    Terminal window
    */5 * * * * /usr/local/bin/manako metrics push --token <agent-token>
MetricDescription
CPUUsage across all cores (%)
MemoryUsed / total capacity
DiskUsage per mount point (%)
NetworkBytes received and sent per interface

Host information (hostname, OS, architecture, agent version) is also recorded.

Time-series graphs are available in the Metrics tab of the monitor detail page. You can select a display period of 1 hour, 24 hours, 7 days, or 30 days.

If no data has been received for more than 5 minutes, a warning “No response for more than 5 minutes” is displayed.

If metrics are not arriving

Check the error log:

Terminal window
cat /tmp/manako-agent.log

Common causes:

  • Invalid token → Retrieve it via manako monitors agent-token <monitor-id>
  • Outbound connections blocked on the server → Allow access to hb.manako.dev (HTTPS/443)

Verify cron is running

Terminal window
# systemd environments
journalctl -u cron --since "10 min ago"
# macOS
log show --last 10m | grep -i cron