How to monitor with Zabbix, Prometheus, Nagios/Icinga
Create an export called `/api/status` :curl -s http://127.0.0.1:9090/api/status jq -r '.sync_stats | "activedebiansync_total_files \(.total_files)\nactivedebiansync_total_bytes \(.total_bytes)\nactivedebiansync_failed_files \(.failed_files)"'
#!/bin/bashSTATUS=$(curl -s http://127.0.0.1:9090/api/health | jq -r '.status')if [ "$STATUS" = "healthy" ]; then echo "OK - ActiveDebianSync is running" exit 0else echo "CRITICAL - ActiveDebianSync is not healthy" exit 2fi
Item type: HTTP agentURL: `http://127.0.0.1:9090/api/status`JSON path: `$.status`