One way to monitor is with Stork. It won't alert you, but it does have an API that collects events such as failure to communicate with a daemon using the Kea control agent, or HA state changed. One can poll that API and emit alerts based on the interesting events. Stork agents also have Prometheus built in, so you can have your Prometheus server send alerts on some conditions. For example, alert if a subnet is 80% full, 20% lower than average, has only been decreasing in count for x minutes, etc. (disclaimer, I haven't done this yet).
I would be much more comfortable with an actual DHCP client, though, like Darren described. One could use dhcperf, or something like scapy. But I am also interested in a better monitoring solution. Eric Graham DevOps Specialist Direct: 605.990.1859 [email protected]<mailto:[email protected]> [cid:773adccf-ba4e-4d90-9339-40e19fa5a1af] ________________________________ From: Kea-users <[email protected]> on behalf of Stefan G. Weichinger <[email protected]> Sent: Tuesday, December 27, 2022 12:10 AM To: [email protected] <[email protected]> Subject: [Kea-users] Monitoring a Kea cluster CAUTION: This email originated outside the organization. Do not click any links or attachments unless you have verified the sender. As I upgraded my isc-kea cluster to Debian 11.6 last week and rebooted the 2 nodes we noticed that initially there were no DHCP-leases offered until I restarted the isc-kea-dhcp4 service (on the primary node of the cluster). Maybe a one time issue, I don't know. - In consequence I´d like to monitor the DHCP-services somehow. I don't run a "real" monitoring like Nagios or Icinga at that site, but use "monit" for basic monitoring ... I added a check to monitor the isc-kea-dhcp4 service itself: does it run, does it behave, if not, restart it. And I added a check to monitor the timestamp of the leases file: if not changed for N minutes, alert me. That is very basic and not even fully OK IMO: the leases file gets rotated ... etc etc I browsed for a check tool and found "dhcping". So far I wasn't able to get a working reply out of that tool :-( ... How do you monitor Kea, are there any recommended ways of doing that? -- ISC funds the development of this software with paid support subscriptions. Contact us at https://www.isc.org/contact/ for more information. To unsubscribe visit https://lists.isc.org/mailman/listinfo/kea-users. Kea-users mailing list [email protected] https://lists.isc.org/mailman/listinfo/kea-users
-- ISC funds the development of this software with paid support subscriptions. Contact us at https://www.isc.org/contact/ for more information. To unsubscribe visit https://lists.isc.org/mailman/listinfo/kea-users. Kea-users mailing list [email protected] https://lists.isc.org/mailman/listinfo/kea-users
