Page 1 of 1

DHCP error just came back

Posted: Thu Aug 09, 2012 1:58 pm
by benningtonr
I just started getting:

CRITICAL: No DHCPOFFERs were received.

at the command line with

[ronb@nagios libexec]$ service iptables stop
[ronb@nagios libexec]$ ./check_dhcp
CRITICAL: No DHCPOFFERs were received.
[ronb@nagios libexec]$ ./check_dhcp -s 192.168.99.73
CRITICAL: No DHCPOFFERs were received.

Re: DHCP error just came back

Posted: Thu Aug 09, 2012 2:42 pm
by nscott
Sounds like your DHCP server isn't working properly, are you sure this isn't what Nagios is for? Has the Nagios server's MAC been blacklisted for too many DHCP requests?

Re: DHCP error just came back

Posted: Fri Aug 10, 2012 7:04 am
by benningtonr
I have just looked at the DHCP server again, and there are no problems. The event logs are clean, and it has over 100 addresses available.
Besides i have dhcp set up for an 8 hour turn around, due to the large amount of visitors we get.
So if it was not working, i would hear about it, quickly.
Anything else we can check in nagios?

Re: DHCP error just came back

Posted: Fri Aug 10, 2012 7:49 am
by scottwilkerson
It could be iptables blocking access

Run the following

Code: Select all

iptables -I INPUT -i eth0 -p udp --dport 67:68 --sport 67:68 -j ACCEPT

Re: DHCP error just came back

Posted: Fri Aug 10, 2012 8:31 am
by benningtonr
ok, that worked, What would have caused iptables to start blocking again?
I had run that before and it has been working fine.

Re: DHCP error just came back

Posted: Fri Aug 10, 2012 8:50 am
by scottwilkerson
not really sure why they wouldn't stick. Have you changed anything? Installed new software?

Re: DHCP error just came back

Posted: Fri Aug 10, 2012 9:06 am
by benningtonr
maybe, i am always tweaking Nagios, love the software, just need to learn more.