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
- 1The agent runs as a service (systemd, OpenRC, launchd, Windows service or a container).
- 2Collectors read the OS every few seconds: system 10 s, processes 30 s, Docker 15 s; the log collector tails the files you list.
- 3It streams to agent.appstatus.io:443 over TLS with the agent key.
- 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
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
Alpine (OpenRC)
Alpine has no systemd, so Get Started shows a binary + OpenRC service script for it. Pick Alpine in the distribution list.
- 3
Manage it
terminalsudo 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
- 1
One command
Get Started → Infrastructure → macOS, pick Apple Silicon or Intel. It downloads the darwin binary to /usr/local/bin, writes /etc/appstatus/agent.yaml with your key and starts the agent.
- 2
Keep it running after reboot
Add a launchd daemon /Library/LaunchDaemons/io.appstatus.agent.plist (ProgramArguments: /usr/local/bin/appstatus-agent -config /etc/appstatus/agent.yaml, RunAtLoad: true), then:
terminalsudo launchctl load /Library/LaunchDaemons/io.appstatus.agent.plist
- 1
PowerShell as Administrator
Get Started writes the full script with your key: it downloads appstatus-agent.exe to C:\Program Files\AppStatus, writes C:\ProgramData\AppStatus\agent.yaml and registers the auto-start service AppStatusAgent.
PowerShell# last two lines of the generated script sc.exe create AppStatusAgent binPath= '"C:\Program Files\AppStatus\appstatus-agent.exe" -config "C:\ProgramData\AppStatus\agent.yaml"' start= auto sc.exe start AppStatusAgent - 2
A fleet of Windows servers
Choose “Windows Server fleet (remote)”. The same install runs on a list of servers over PowerShell Remoting with one credential prompt. Enable WinRM once per target with Enable-PSRemoting -Force, or package the single-server script for GPO, SCCM or Intune.
- 1
One container
Works on any Linux host, x86 or ARM.
terminaldocker run -d --name appstatus-agent --restart unless-stopped \ --pid=host --net=host \ -e APPSTATUS_API_KEY=<your-key> \ -e APPSTATUS_ENDPOINT=agent.appstatus.io:443 -e APPSTATUS_TLS=true \ -v /var/run/docker.sock:/var/run/docker.sock:ro \ -v /var/log:/host/var/log:ro \ appstatus/agent:latest - 2
Tail your application logs too
Mount the folder and list the paths under /host, separated by semicolons:
terminal-e APPSTATUS_LOG_PATHS="/host/var/log/syslog;/host/srv/app/*.log"
Check it works
- 1
Connect in Get Started
Press Connect / Test Connection. The host appears in Infrastructure with its CPU and memory within a minute.
- 2
Check from the host
terminalcurl -s https://agent.appstatus.io/health # {"status":"ok"} journalctl -u appstatus-agent -n 20 # "Connected to agent-service"
Use it
- 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.yamllogs_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
Update the agent
Run the install command again. It replaces the binary, keeps /etc/appstatus/agent.yaml and restarts the service.
- 3
Per-host settings
Infrastructure → open the host → Settings: collectors and intervals, or delete the host.
Uninstall / remove
- 1
Linux (systemd)
terminalsudo 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
macOS
terminalsudo 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
Windows
PowerShellsc.exe stop AppStatusAgent sc.exe delete AppStatusAgent Remove-Item -Recurse -Force "C:\Program Files\AppStatus", "C:\ProgramData\AppStatus" - 4
Docker
terminaldocker rm -f appstatus-agent docker rmi appstatus/agent:latest - 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:
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:
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:
& "C:\Program Files\AppStatus\appstatus-agent.exe" -config "C:\ProgramData\AppStatus\agent.yaml"
Test-NetConnection agent.appstatus.io -Port 443Docker 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.
Related guides
Infrastructure
Infrastructure & hosts
The host fleet, each host’s detail page, and agent management.
Infrastructure
Containers
Docker containers and their usage on every host the agent runs on.
Logs & metrics
Logs
Send logs from the agent, OpenTelemetry or HTTP; search, live tail, archive and restore.
Start here
Uninstall & remove data
Remove every agent, collector and snippet, then delete the data or the whole account.
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.