Skip to content

Host agent

Install, check, update and remove the agent on Linux, macOS, Windows and Docker.

In the console: Console → Observe → Infrastructure (⋮ → Agent management)

All guides

The AppStatus agent is one small binary per host. It reports CPU, memory, disk, network, processes, open ports, Docker containers and security signals, tails the log files you name, and finds databases by their processes and ports.

It connects out to agent.appstatus.io on port 443; nothing connects in. Every host lights up the Infrastructure, Containers, Network and Storage pages automatically.

Why use it

  • You run servers or VMs and want CPU, memory, disk, network, processes and containers per host.
  • You want log files from those servers in search.
  • You need a fleet view of which hosts are up, overloaded or silent.

How it works

  1. 1The agent runs as a service (systemd, OpenRC, launchd, Windows service or a container).
  2. 2Collectors read the OS every few seconds: system 10 s, processes 30 s, Docker 15 s; the log collector tails the files you list.
  3. 3It streams to agent.appstatus.io:443 over TLS with the agent key.
  4. 4Hosts appear in Infrastructure; containers, network and storage pages fill from the same stream.

What you get

  • Linux: Ubuntu, Debian, Fedora, RHEL, Rocky, AlmaLinux, CentOS, Alpine (OpenRC), Arch and openSUSE, on x86_64 and ARM64.
  • macOS (Apple Silicon and Intel), Windows (x86_64 and ARM64, one server or a whole fleet over PowerShell Remoting) and Docker (multi-arch image).
  • Ansible, Chef, Puppet, Salt, cloud-init and cloud-VM recipes in Get Started for fleets.
  • Central fleet view: versions, last heartbeat, install method, and per-host settings.

Before you start

  • Root / Administrator on the host.
  • Outbound HTTPS (443) to agent.appstatus.io.
  • On Free, up to 3 host agents per workspace. Paid plans have no host cap.

Set it up

Get Started shows these commands with your key already filled in — copying from there is the quickest path. Here, <your-key> marks where it goes.

  1. 1

    One command

    install.sh detects the CPU (amd64/arm64), installs /usr/local/bin/appstatus-agent, writes /etc/appstatus/agent.yaml with your key and registers the systemd service appstatus-agent.

    terminal
    # 1) Prerequisites (Ubuntu/Debian shown; Get Started has the line for your distribution)
    sudo apt update && sudo apt install -y curl ca-certificates
    
    # 2) Install, set the key and start the systemd service
    curl -sSL https://agent.appstatus.io/install.sh | sudo APPSTATUS_API_KEY="<your-key>" bash
  2. 2

    Alpine (OpenRC)

    Alpine has no systemd, so Get Started shows a binary + OpenRC service script for it. Pick Alpine in the distribution list.

  3. 3

    Manage it

    terminal
    sudo systemctl status appstatus-agent    # health + recent output
    journalctl -u appstatus-agent -f         # follow the agent log
    sudo nano /etc/appstatus/agent.yaml      # collectors, log paths
    sudo systemctl restart appstatus-agent   # apply changes

Check it works

  1. 1

    Connect in Get Started

    Press Connect / Test Connection. The host appears in Infrastructure with its CPU and memory within a minute.

  2. 2

    Check from the host

    terminal
    curl -s https://agent.appstatus.io/health          # {"status":"ok"}
    journalctl -u appstatus-agent -n 20    # "Connected to agent-service"

Use it

  1. 1

    Tail log files

    Append to /etc/appstatus/agent.yaml (C:\ProgramData\AppStatus\agent.yaml on Windows) and restart the agent. Get Started → Logs has ready blocks for Nginx, PostgreSQL, MySQL, MongoDB, Redis, journald and your own files.

    agent.yaml
    logs_enabled: true
    logs:
      - type: file
        path: /var/log/nginx/access.log
        service: nginx
        source: nginx
      - type: file
        path: /srv/app/logs/*.log
        service: checkout-api
        source: app
  2. 2

    Update the agent

    Run the install command again. It replaces the binary, keeps /etc/appstatus/agent.yaml and restarts the service.

  3. 3

    Per-host settings

    Infrastructure → open the host → Settings: collectors and intervals, or delete the host.

Uninstall / remove

  1. 1

    Linux (systemd)

    terminal
    sudo systemctl stop appstatus-agent
    sudo systemctl disable appstatus-agent
    sudo rm -f /etc/systemd/system/appstatus-agent.service
    sudo systemctl daemon-reload
    sudo rm -f /usr/local/bin/appstatus-agent
    sudo rm -rf /etc/appstatus /var/lib/appstatus-agent
  2. 2

    macOS

    terminal
    sudo launchctl unload /Library/LaunchDaemons/io.appstatus.agent.plist 2>/dev/null
    sudo rm -f /Library/LaunchDaemons/io.appstatus.agent.plist
    sudo pkill -f appstatus-agent 2>/dev/null
    sudo rm -f /usr/local/bin/appstatus-agent
    sudo rm -rf /etc/appstatus
  3. 3

    Windows

    PowerShell
    sc.exe stop AppStatusAgent
    sc.exe delete AppStatusAgent
    Remove-Item -Recurse -Force "C:\Program Files\AppStatus", "C:\ProgramData\AppStatus"
  4. 4

    Docker

    terminal
    docker rm -f appstatus-agent
    docker rmi appstatus/agent:latest
  5. 5

    Remove the host from the console

    Infrastructure → the host → Settings → Delete. Its key survives and can be reused; revoke it under Settings → Credentials if not.

Troubleshooting

The problems seen most, each with what to run. Still stuck? See the general Troubleshooting guide.

Installed, but the host never appears

The three common causes: Connect was not pressed in Get Started yet, the key in agent.yaml is wrong, or outbound 443 is blocked. Work down the checks:

terminal
sudo systemctl status appstatus-agent
journalctl -u appstatus-agent -f          # bad key, connection refused …
sudo cat /etc/appstatus/agent.yaml        # key + endpoint
curl -s https://agent.appstatus.io/health              # can this host reach AppStatus?
sudo systemctl restart appstatus-agent
“YOUR_API_KEY_HERE” in agent.yaml

install.sh was run without the key. Put the key in and restart:

terminal
sudo sed -i 's/YOUR_API_KEY_HERE/<your-key>/' /etc/appstatus/agent.yaml
sudo systemctl restart appstatus-agent
“http2: frame too large” or “first record does not look like a TLS handshake”

The endpoint or the TLS setting in agent.yaml does not match the server. Use exactly the endpoint and tls.enabled value Get Started wrote (agent.appstatus.io:443 with TLS on).

Alpine: “systemctl: not found”

Alpine uses OpenRC. Remove the half-done install and use the Alpine command from Get Started.

Windows service will not start

Run the agent in a console to see the error, and test the network path:

PowerShell
& "C:\Program Files\AppStatus\appstatus-agent.exe" -config "C:\ProgramData\AppStatus\agent.yaml"
Test-NetConnection agent.appstatus.io -Port 443
Docker containers are missing on the host page

The agent needs the Docker socket. On a package install, the docker collector reads /var/run/docker.sock; in the container, mount it read-only (-v /var/run/docker.sock:/var/run/docker.sock:ro).

“Agent limit reached”

Free allows 3 host agents. Delete hosts you no longer use (Infrastructure → host → Settings → Delete) or upgrade.

Plan limits

  • Free: 3 host agents. Starter and up: no host cap — usage is bounded by the data pool and metric series.
Compare plans →

Something here does not match what you see in the console? Open Help → Support in AppStatus or write to support@appstatus.io with the page and what you ran.