prometheus / blackbox_exporter

Blackbox prober exporter
https://prometheus.io
Apache License 2.0
4.55k stars 1.04k forks source link

Implement DHCP #1180

Open rdelaage opened 8 months ago

rdelaage commented 8 months ago

Hi all!

I would like to monitor a DHCP server and collect some statistics (mostly duration). DHCP is built on UDP. I saw #184 but I think it would be better to implement a specific prober (like for the DNS protocol).

I would enjoy helping you with this task :)

rdelaage commented 7 months ago

A reference could be the Nagios implementation https://github.com/nagios-plugins/nagios-plugins/blob/master/plugins-root/check_dhcp.c

SuperQ commented 7 months ago

This is an interesting idea. But maybe due to the complexity of handling DHCP packets it's worth making this a separate exporter/prober first.

Do you have an example collector for this? What Go libraries would you need?