Hi!
People may have noticed that ISC desupported their former DHCP software (DHCP client, server, relay) and now offers a product called KEA instead which is a DHCP server, a DHCPv6 server and a DDNS update server bundled into one (though the three services are independently installed and configured).
A client had me write a monitoring plugin specifically for the DHCP server (not the DHCPv6 server) to use instead of the isc_dhcpd plugin shipped in base.
I would like to contribute this (the client has agreed and leaves details to me). Since the isc_dhcpd plugin is in base, perhaps you’d like this in base as well?
This is comprised of one agent plugin (written in Python3) and one check plugin (v2 API) that offers both one service per DHCP pool (exactly like isc_dhcpd) and additionally one extra service for the dæmon’s globals (PID, uptime, errors).
The agent plugin requires check_mk_agent to be run as root (or at least with permissions to test for existence of the dhcpd4 config file (it is inert if absent) and access the management UNIX domain socket), and the kea-dhcp4-server to be configured with the "libdhcp_subnet_cmds.so” hook library enabled (it is FOSS from KEA 3.x onwards, which I managed to get into trixie-backports, and was a paid add-on before).
As for DHCPv6, I don’t have a setup of that anywhere (personally I just use rtadvd) and not the time on the contract to work on it, but KEA is so structured that changing a few 4 into 6 in both agent and check plugin will give you one for DHCPv6 (they could even share the same files, I’d think). I’m not sure how kea-dhcp-ddns-server fits into this, I don’t think a plugin for it would be even remotely similar, other than the agent code to access the management socket.
I’d attach what I already have here if the forum would let me, as basis for further discussion. Please note that this is my very first foray into modern (as in, less than 15 years old) Nagios/check_mk.
How to best proceed?
Given that ISC DHCPD is EOL as of 2023, many users will want to have this.