[Kea-users] Monitoring a Kea cluster

Eric Graham eric.graham at vantagepnt.com
Tue Dec 27 20:35:44 UTC 2022


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
Eric.Graham at vantagepnt.com<mailto:eric.graham at vantagepnt.com>
[cid:773adccf-ba4e-4d90-9339-40e19fa5a1af]
________________________________
From: Kea-users <kea-users-bounces at lists.isc.org> on behalf of Stefan G. Weichinger <lists at xunil.at>
Sent: Tuesday, December 27, 2022 12:10 AM
To: kea-users at lists.isc.org <kea-users at lists.isc.org>
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
Kea-users at lists.isc.org
https://lists.isc.org/mailman/listinfo/kea-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/kea-users/attachments/20221227/35bf26d6/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Outlook-c1ooi2ao.png
Type: image/png
Size: 16388 bytes
Desc: Outlook-c1ooi2ao.png
URL: <https://lists.isc.org/pipermail/kea-users/attachments/20221227/35bf26d6/attachment-0001.png>


More information about the Kea-users mailing list