Docs / Agent
Install the agent on macOS
The agent runs as a launchd daemon, as root, and starts at boot. Use darwin-arm64 on Apple silicon and darwin-amd64 on Intel Macs.
Install
sudo install -m 0755 uptight-agent-darwin-arm64 /usr/local/bin/uptight-agent
sudo xattr -d com.apple.quarantine /usr/local/bin/uptight-agent 2>/dev/null || true
sudo mkdir -p "/Library/Application Support/Uptight" /Library/Logs/Uptight
sudo chmod 0700 "/Library/Application Support/Uptight"
Create /Library/Application Support/Uptight/agent.yaml:
central_url: https://uptight.example.com
enrollment_token: "the token from central's server.yaml"
Then install and load the daemon (com.uptight.agent.plist is in the repository's deploy/macos/ folder):
sudo cp com.uptight.agent.plist /Library/LaunchDaemons/
sudo launchctl bootstrap system /Library/LaunchDaemons/com.uptight.agent.plist
Manage it
| To | Run |
|---|---|
| Restart after a config change | sudo launchctl kickstart -k system/com.uptight.agent |
| See its state | sudo launchctl print system/com.uptight.agent |
| Read its log | tail -f /Library/Logs/Uptight/uptight-agent.log |
| Dry run | sudo uptight-agent test |
| Remove it | sudo launchctl bootout system/com.uptight.agent |
Files: config and state in /Library/Application Support/Uptight/ (state in its state/ folder), log in /Library/Logs/Uptight/.
What it watches on a Mac
- CPU, memory and disk IO, from macOS's own counters. Disk IO busy time is approximated from read and write time.
- Disks: the
/System/Volumes/Datavolume (where your files live;/is a sealed, read-only system snapshot whose usage leaves your data out) and any external volume under/Volumes. - Java and Node processes that keep running.
- The agent id comes from the Mac's hardware UUID, so reinstalling keeps the same identity.
Not on macOS: systemd units, pm2 apps (macOS does not let the agent read another process's environment), package reports and automatic upgrades.
Check it worked
Within a minute the host appears in the web UI under Servers and on the dashboard, with CPU, memory, IO and disk checks. Its Java and Node services wait under Discovered for you to approve them. If it does not show up, see the agent does not show up.