DHCP Server Monitoring Issue

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
shailu2014
Posts: 102
Joined: Thu Apr 24, 2014 3:17 am

DHCP Server Monitoring Issue

Post 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.
You do not have the required permissions to view the files attached to this post.
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: DHCP Server Monitoring Issue

Post 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.
Former Nagios Employee.
me.
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: DHCP Server Monitoring Issue

Post 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?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
shailu2014
Posts: 102
Joined: Thu Apr 24, 2014 3:17 am

Re: DHCP Server Monitoring Issue

Post 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.
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: DHCP Server Monitoring Issue

Post by Box293 »

Is the XI server on the same physical network segment as the DHCP server?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
shailu2014
Posts: 102
Joined: Thu Apr 24, 2014 3:17 am

Re: DHCP Server Monitoring Issue

Post 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
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: DHCP Server Monitoring Issue

Post by Box293 »

Is there anything in the windows server DHCP log to indicate why?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
shailu2014
Posts: 102
Joined: Thu Apr 24, 2014 3:17 am

Re: DHCP Server Monitoring Issue

Post by shailu2014 »

do u want the events logs of DHCP server from windows ?
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: DHCP Server Monitoring Issue

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
shailu2014
Posts: 102
Joined: Thu Apr 24, 2014 3:17 am

Re: DHCP Server Monitoring Issue

Post by shailu2014 »

yes, you are right we are using windows 2008r2 std base dhcp server.
Locked