Skip to content

More

Server Agent: CPU, memory and disks

Checking a website tells you if it answers. The Watchdog Agent tells you why it might be struggling. It is a small program you install on a Linux server. It reports CPU, memory, disks, network and the busiest processes to your Mac.

Is it safe?

  • It only reads. It can't run commands or change anything on your server.
  • The data goes straight from your server to your Mac over an encrypted connection. It doesn't pass through any cloud.
  • The installer never opens your firewall.

It runs on Linux with systemd, on x86-64 and ARM64 machines.

Install it

  1. In the popover, right-click the server and choose Add Server Agent…. You can also start from the Server resources box in its detail view.
  2. Check the Name. Provider and Region are optional labels, like aws and eu-central-1, that help you sort servers later.
  3. Click Copy next to the command and run it on your server.
Add agent window, Install step, with Name, Provider, Region and an install command with a Copy button
Step one: copy the command and run it on your server.

The command looks like this:

curl -fsSL https://watchdog.imfoysal.dev/agent/install.sh | sudo bash -s -- --name 'api-prod-1'

Pair it with your Mac

  1. When the install finishes, it prints a pairing code. Copy it.
  2. Back in Watchdog, click Continue and paste the code into Pairing code.
  3. Check the Address, then click Test Connection. You should see Connected and the round trip time.
  4. Look over the Alert when rules, then click Add Agent.

Your Mac needs to reach the server on port 7443. If the server sits behind a router or a private network, a VPN like Tailscale or WireGuard, or an SSH tunnel, does the job.

The Resources window

Right-click the server and choose Open Resources…, or click Open Resources in its detail view.

Resources window overview with CPU, memory, volumes, disk I/O, network and processes
The overview of one server. The sidebar has a page for each part.

Pick a time range at the top right, from 1 minute to 30 days. The short ranges update every second. All Servers in the sidebar shows every agent side by side, grouped by provider or region if you like.

Resource alerts

The agent comes with sensible alert rules, and you can change them in Settings › Monitoring › Server resources:

WhenThen
CPU above 90% for 5 minutesSlow
Memory above 95% for 5 minutesSlow
Any disk above 90%Slow
Any disk above 97%Down

Use Built-in Rules puts the defaults back.

Remove the agent

In the Resources window, open About Server and click Remove Agent…. To take it off the server as well, run:

curl -fsSL https://watchdog.imfoysal.dev/agent/install.sh | sudo bash -s -- --uninstall