Page 1 of 2

DHCP Server Monitoring Issue

Posted: Wed Aug 19, 2015 2:20 am
by shailu2014
Hi All,

I have configured the windows DHCP Server monitoring on Nagios XI but after configuring I getting the error which mentioned below.

CRITICAL: No DHCPOFFERs were received. (Screen Shot attached).

I have given the access in iptables also & not get the success with below script then stop the iptables services on Ngaios XI server but error still same.
iptables -I INPUT -i eth0 -p udp --dport 67:68 --sport 67:68 -j ACCEPT

please help me to configure the DHCP server on Nagios XI

Thanks & Appreciation in Advance.

Re: DHCP Server Monitoring Issue

Posted: Wed Aug 19, 2015 9:27 am
by hsmith
sjain2014 wrote:Hi All,

I have configured the windows DHCP Server monitoring on Nagios XI but after configuring I getting the error which mentioned below.

CRITICAL: No DHCPOFFERs were received. (Screen Shot attached).

I have given the access in iptables also & not get the success with below script then stop the iptables services on Ngaios XI server but error still same.
iptables -I INPUT -i eth0 -p udp --dport 67:68 --sport 67:68 -j ACCEPT

please help me to configure the DHCP server on Nagios XI

Thanks & Appreciation in Advance.
So even if you turn the firewall off, and then force it to do a check, you still get the same error? I've found that it's almost been a firewall related error when I am not able to get a DHCP offer.

Re: DHCP Server Monitoring Issue

Posted: Wed Aug 19, 2015 8:02 pm
by Box293
When you execute the check_dhcp request, the XI server must be on the same physical network segment as the DHCP server.

Code: Select all

./check_dhcp
OK: Received 1 DHCPOFFER(s), max lease time = 600 sec.
If you want to ensure that a specific DHCP server is working, you can target it.

Code: Select all

./check_dhcp -s xxx.xxx.xxx.xxx
OK: Received 1 DHCPOFFER(s), 1 of 1 requested servers responded, max lease time = 600 sec.
Does this help?

Re: DHCP Server Monitoring Issue

Posted: Thu Aug 20, 2015 12:11 am
by shailu2014
Hi hsmith,

Yes, I have turn off the firewall (iptables) and then also i getting the error.

CRITICAL: No DHCPOFFERs were received.

Hi Box293,

when I have tried to run this command (./check_dhcp & ./check_dhcp -s 192.168.0.4 ) got the below error message.

# ./check_dhcp
CRITICAL: No DHCPOFFERs were received.

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

when I search this error CRITICAL: No DHCPOFFERs were received on Google and found some link which mention below
https://support.nagios.com/forum/viewto ... =6&t=33476

As per the link I have run the scrip which mentioned below and also get the error & disable the firewall (iptables) on Nagios XI Server and even disable windows firewall also.

#/usr/local/nagios/libexec/check_dhcp -vvv
DHCP socket: 3
Hardware address: 00:50:56:99:24:9b
DHCPDISCOVER to 255.255.255.255 port 67
DHCPDISCOVER XID: 802893439 (0x2FDB2E7F)
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: 548




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.


#/usr/local/nagios/libexec/check_dhcp -vvv -s 192.168.0.4
Requested server address: 192.168.0.4
DHCP socket: 3
Hardware address: 00:50:56:99:24:9b
DHCPDISCOVER to 255.255.255.255 port 67
DHCPDISCOVER XID: 2136837831 (0x7F5D8EC7)
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: 548




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.

So please let me know how we can fix this issue.

Thanks & Appreciation in Advance.

Re: DHCP Server Monitoring Issue

Posted: Thu Aug 20, 2015 12:15 am
by Box293
Is the XI server on the same physical network segment as the DHCP server?

Re: DHCP Server Monitoring Issue

Posted: Thu Aug 20, 2015 12:20 am
by shailu2014
Yes DHCP server and Nagios XI server in same physical network (192.168.0.0), and I am able to do the nslookup also.

# nslookup 192.168.0.4
Server: 192.168.0.4
Address: 192.168.0.4#53

4.0.168.192.in-addr.arpa name = adc.co.in

Re: DHCP Server Monitoring Issue

Posted: Thu Aug 20, 2015 1:05 am
by Box293
Is there anything in the windows server DHCP log to indicate why?

Re: DHCP Server Monitoring Issue

Posted: Thu Aug 20, 2015 1:10 am
by shailu2014
do u want the events logs of DHCP server from windows ?

Re: DHCP Server Monitoring Issue

Posted: Thu Aug 20, 2015 1:27 am
by Box293
Basically I am trying to see if the actual DHCP server is logging why it's not responding to the Nagios server.
sjain2014 wrote:As per the link I have run the scrip which mentioned below and also get the error & disable the firewall (iptables) on Nagios XI Server and even disable windows firewall also.
This comment made me think the DHCP server is a windows box.

Re: DHCP Server Monitoring Issue

Posted: Thu Aug 20, 2015 1:34 am
by shailu2014
yes, you are right we are using windows 2008r2 std base dhcp server.