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

ToRun
Restart after a config changesudo launchctl kickstart -k system/com.uptight.agent
See its statesudo launchctl print system/com.uptight.agent
Read its logtail -f /Library/Logs/Uptight/uptight-agent.log
Dry runsudo uptight-agent test
Remove itsudo 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

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.