Setup an agent
After creating an agent above, copy its key and configure the agent script on the remote machine:
- Copy
PulseWatch/agent/agent.php and agent-config.example.json to the remote server.
- Rename to
agent-config.json and fill in your agent_key.
- Test:
php agent.php agent-config.json
- Add to cron:
* * * * * php /path/to/agent.php /path/to/agent-config.json >> /var/log/pw-agent.log 2>&1
A service is reported up if at least one agent (or the local cron) reported up within the last 5 minutes.