To send metrics to the API every 5 minutes (on a system with cron utility installed), add this line to your cron table
$crontab -e:
*/5 * * * * /home/your-user/server-status-client/bin/server-status-client api:send-metricsTo enable client listening for API Live Metrics Request (on a system with systemd utility installed), you can create a
systemd Unit file at /etc/systemd/system/server-status-client.service with this content:
[Unit]
Description=Server Status Client (Live Mode)
[Service]
Type=simple
Restart=always
ExecStart=/home/your-user/server-status-client/bin/server-status-client api:list
[Install]
WantedBy=multi-user.targetReload systemd daemon:
$systemctl daemon-reloadThen start the service manually with the command:
$systemctl start server-status-clientTo stop the service:
$systemctl stop server-status-clientOr enable on-boot loading of the service:
$systemctl enable server-status-clientTo disable on-boot loading:
$systemctl disable server-status-client