Docs / Agent
Install the agent on Linux
On Ubuntu and Debian, use the package: it installs a systemd unit and can upgrade itself. Anywhere else, the static binary with the systemd unit does the same.
Builds: linux-amd64, linux-arm64, linux-arm (ARMv7: Raspberry Pi 2 and later on a 32-bit OS) and linux-386.
With the package (Ubuntu, Debian)
sudo apt install uptight-agent
Edit /etc/uptight/agent.yaml (it is created root-only, mode 0600) and set the two required keys:
central_url: https://uptight.example.com
enrollment_token: "the token from central's server.yaml"
sudo systemctl restart uptight-agent
journalctl -u uptight-agent -f
Once enrolled, the agent saves its own key in /var/lib/uptight-agent/agent.key and no longer needs the token.
With the binary (any distribution)
sudo install -m 0755 uptight-agent-linux-amd64 /usr/local/bin/uptight-agent
sudo install -d -m 0700 /etc/uptight
sudo install -m 0600 agent.example.yaml /etc/uptight/agent.yaml # then edit it
sudo install -m 0644 uptight-agent.service /etc/systemd/system/
sudo systemctl daemon-reload && sudo systemctl enable --now uptight-agent
uptight-agent.service and agent.example.yaml are in the repository's deploy/ folder. To roll out to many hosts, deploy/ansible/uptight-agent.yml does the same with Ansible.
Dry run first
uptight-agent test runs discovery once and prints what it would report, without contacting central:
sudo uptight-agent test -c /etc/uptight/agent.yaml
What Linux adds
- systemd units: services are discovered and can be watched (approve them under Discovered).
- Containers: in a container the agent measures its cgroup's CPU and memory limits, and reports pressure (PSI) where the kernel has it.
- pm2 apps are discovered with their restart counts.
- Packages Pro: with
report_packages: trueon Ubuntu, Debian and NixOS, installed packages are matched against vulnerability feeds. - Upgrades: a deb install can be upgraded by central (
auto_upgrade: trueand agent upgrade rings).
Cloned machines and images
The agent id comes from /etc/machine-id. In image builds, truncate it (truncate -s 0 /etc/machine-id) and never bake /var/lib/uptight-agent into the image, so each instance enrolls as itself. A clone that gets 409 agent already enrolled needs a new machine id: rm /etc/machine-id && systemd-machine-id-setup.
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.