Page 1 of 1

check_dhcp?

Posted: Wed Nov 23, 2011 6:59 am
by TSCAdmin
I am trying to monitor our DHCP server but all I get is "CRITICAL: No DHCPOFFERs were received.". I have tried looking around the web and the forum archives but could not find anything interesting.

The check_dhcp version we are using v2018 (nagios-plugins 1.4.13).

Here is the verbose output of check_dhcp if it helps

Code: Select all

./check_dhcp -v
DHCP socket: 3
Hardware address: d8:d3:85:df:85:f0
DHCPDISCOVER to 255.255.255.255 port 67
DHCPDISCOVER XID: 1956190566 (0x74991966)
DHCDISCOVER ciaddr:  0.0.0.0
DHCDISCOVER yiaddr:  0.0.0.0
DHCDISCOVER siaddr:  0.0.0.0
DHCDISCOVER giaddr:  0.0.0.0
send_dhcp_packet result: -1


No (more) data received (nfound: 0)
Result=ERROR
Total responses seen on the wire: 0
Valid responses for this machine: 0
CRITICAL: No DHCPOFFERs were received.
Is there something I am missing?

Thanks

Re: check_dhcp?

Posted: Wed Nov 23, 2011 11:12 am
by mguthrie
You can see the plugin's usage documentation by running:

Code: Select all

./check_dhcp -h
Can you show us what you're running from a command-line test so we can see all of the arguments?

Re: check_dhcp?

Posted: Thu Nov 24, 2011 3:49 am
by TSCAdmin
Hello Mike,

I have tried running it as following:

Code: Select all

./check_dhcp dus1vsr0006
CRITICAL: No DHCPOFFERs were received

Code: Select all

./check_dhcp -s dus1vsr0006
CRITICAL: No DHCPOFFERs were received.

Code: Select all

]$ ./check_dhcp -s dus1vsr0006 -r 10.208.0.178
CRITICAL: No DHCPOFFERs were received.
I have tried almost everything but nothing works :(

Re: check_dhcp?

Posted: Thu Nov 24, 2011 4:40 pm
by jsmurphy
Perhaps obvious... but is the check being executed from a portion of the network where DHCP is available... I.e is it in a VLAN where DHCP is unavailable or is the server not in a DHCP enabled subnet?

Re: check_dhcp?

Posted: Tue Dec 06, 2011 8:33 am
by TSCAdmin
That's a very thoughtful response, I will check with the team that manages DHCP and post any updates. Thanks.