Multiple DHCP server monitoring on VLANs

I am running Kea DHCP server on a PFSense firewall serving offers for two different VLAN3, VLAN4. There are 3 VLANs coming into the PFSense Firewall: VLAN1, VLAN2, VLAN3 My Icinga Monitor is on VLAN1. VLAN 1 has is own DHCP servers not hosted on the PFSense firewall.

I would like to monitor the DHCP servers serving VLAN3 and VLAN4 via PFSense; how should I go about this?

Please define to start with what you mean by “monitor” - what do you want to
measure about a DHCP server? What would you like Icinga to be able to report
on?

Antony.

you can use the pfsense api and iterate over the data array to idk check if all dhcp servers are enabled:
https://pfrest.org/api-docs/#/SERVICES/getServicesDHCPServersEndpoint

1 Like

Please define to start with what you mean by “monitor” - what do you want to
measure about a DHCP server? What would you like Icinga to be able to report
on?

At a minimum, I would like to make sure that the DHCP server is operational and serving up a DHCP lease from the assigned scope. I don’t need to validate the scope, just that I got an offer in the scope range.

Ideally, I would like metrics such as how many leases there are and how much of the lease space is remaining. I understand these metrics are probably not going to happen without integrating with PFSense somehow.

Please define to start with what you mean by “monitor” - what do you want to
measure about a DHCP server? What would you like Icinga to be able to report
on?

Interesting! I did not realize this API exists. I was however hoping for some sort of out of the box solution.