check_dhcp seems not working

jmoseley at corp.xanadoo.com jmoseley at corp.xanadoo.com
Thu Jan 15 20:06:21 CET 2009





Christian Iñiguez <challenger_joseph at yahoo.com.mx>  wrote:

>Hi Everyone
>
>I have a linux server as dhcp server and it's working very well, and I'd
like to monitoring it with nrpe plugin and check_dhcp.>
>
>The problem here is the outcome of check_dhcp is always: CRITICAL: No
DHCPOFFERs were received. But the server is working alright.
>
>The command line is: check_dhcp -s serverip -t 30
>
>What am I doing wrong? Any suggest?
>
>Thanks in advance!

I have no idea which flavor of DHCP you are running (probably ISC's), but I
don't think you are going to be able to run check_dhcp from the DHCP server
itself.  The DHCP server will see an incoming requeset from itself and
probably block it.  Therefore, using the nrpe method of doing these checks
is a moot point.

If your Nagios server is on the same network as the DHCP server, just run
check_dhcp from the Nagios box.  If you're running Nagios on a different
network than the DHCP server and there is a firewall in between, you'll
probably have to do several things:

1. Open up a hole in the firewall to allow the Nagios server to request a
DHCP address from the DHCP server
2. Have a DHCP relay statement on the router's interface your Nagios server
connects to so it knows to which server to relay the DHCP request to
3. Setup a small DHCP subnet on the DHCP server in the same IP range as the
Nagios server so it can offer a valid IP address

There are probably other methods as well.

James





------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list