Page 1 of 1

check_udp DHCP port 67

Posted: Wed Aug 08, 2012 4:50 am
by sebastiaopburnay
Hi!

I'm having some troubles implementing a check upon UDP port 67 (in which DHCP servers listen to DHCP requests).

The check_udp has four mandatory arguments::
(i) -H - Host address, with the checked host's IP adress
(ii) -p - port, remote host's port to be checked
(iii) -s - string to be sent to the checked host
(iv) -e - string to be expected as response

The problem is that I have no idea of what strings should be sent/expected.

Is it an hxadecimal code word part of the DHCP protocol's dialogue?

I believe so, but I really have no idea which strings should be used to this purpose.

Best regards,
sebastiaopburnay

Re: check_udp DHCP port 67

Posted: Wed Aug 08, 2012 11:15 am
by nscott
sebastiopburnay,

There should be a check_dhcp plugin explicitly for checking DHCP status in the core nagios-plugins. This will make it much easier to check DHCP status. But to answer you're question, I'm not really sure DHCP servers allow intiations from non-broadcast messages. Either way, I think check_dhcp is the plugin to use.