Monitoring enhancement

Started by va176thunderbolt, February 04, 2018, 03:55:13 AM

Previous topic - Next topic
Could the monitoring be enhanced to include/graph the unbound statistics and dhcp pool(s) utilization?

The dhcp pool utilization would help where I've deployed "guest" networks (churches and "free" stores) so I could if it's trending up so I can change the subnet before there's a problem.

The unbound stats would be useful for tuning.

Thanks!
AMD Ryzen 3 1200
GA-A320M-S2H
8GB DDR4
Intel X550-T2 10GB
32GB Industrial SSD

Shuttle SZ270R8
Intel i5-6500
8gb ram
120gb ssd
Intel x540-t2 10gb nic

I'm not a DHCP expert but I think you could create a script and add it to the Monit as described in the Monit HowTo (look for the CheckIPMI.sh script).

CheckDHCP.sh
#!/bin/csh

set MaxLeaseCount = 500

set LeaseCount = `grep -c "binding state active" /var/dhcpd/var/db/dhcpd.leases`
echo "LeaseCount: $LeaseCount"
if ( $LeaseCount >= $MaxLeaseCount ) then
   exit 1
endif
exit 0