Docs / Agent
Install the agent on FreeBSD
An rc.d script runs the agent under daemon(8), which restarts it if it exits. Builds: freebsd-amd64 and freebsd-arm64.
Install
install -m 0755 uptight-agent-freebsd-amd64 /usr/local/bin/uptight-agent
install -m 0555 uptight_agent /usr/local/etc/rc.d/uptight_agent
mkdir -p /usr/local/etc/uptight && chmod 0700 /usr/local/etc/uptight
Create /usr/local/etc/uptight/agent.yaml with central_url and enrollment_token, then:
sysrc uptight_agent_enable=YES
service uptight_agent start
uptight_agent is in the repository's deploy/freebsd/ folder. uptight_agent_config and uptight_agent_logfile in rc.conf change its paths.
Files
| What | Where |
|---|---|
| Config | /usr/local/etc/uptight/agent.yaml |
| State (key, buffer) | /var/db/uptight-agent |
| Log | /var/log/uptight-agent.log |
What it watches on FreeBSD
- CPU, memory and disk IO, UFS and ZFS filesystems (space and inodes), and long-running Java and Node processes.
- The agent id comes from the host.s
kern.hostuuid.
Not on FreeBSD: systemd units, pm2 apps, package reports and automatic upgrades. After a config error the agent exits and daemon(8) keeps restarting it every 10 seconds; fix agent.yaml and run service uptight_agent restart.
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.