check_udp DHCP port 67

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
User avatar
sebastiaopburnay
Posts: 105
Joined: Sun Oct 31, 2010 1:40 pm
Location: Lisbon, Portugal

check_udp DHCP port 67

Post 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
User avatar
nscott
Posts: 1040
Joined: Wed May 11, 2011 8:54 am

Re: check_udp DHCP port 67

Post 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.
Nicholas Scott
Former Nagios employee
Locked