check_dhcp seems not working

Christian Iñiguez challenger_joseph at yahoo.com.mx
Thu Jan 15 20:54:36 CET 2009


Exactly Kevin, you are right



----- Mensaje original ----
De: Kevin Keane <subscription at kkeane.com>
CC: nagios-users at lists.sourceforge.net
Enviado: jueves, 15 de enero, 2009 13:39:47
Asunto: Re: [Nagios-users] check_dhcp seems not working

jmoseley at corp.xanadoo.com wrote:
>
>
> 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
I actually have the same problem as Christian, and it does NOT work even 
though Nagios is running on a different box on the same network as the 
DHCP server. In fact, the Nagios box actually gets its IP address from 
the same DHCP server that I would like to monitor (ISC DHCP server 3.0.6 
on a SuSE 10.3). I've seen the same problem before against a Windows 
DHCP server, too, never been able to make check_dhcp work.

check_dhcp -v prints this:

DHCP socket: 3
Hardware address: 00:0c:29:0e:28:4f
DHCPDISCOVER to 255.255.255.255 port 67
DHCPDISCOVER XID: 2138668641 (0x7F797E61)
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.

-- 
Kevin Keane
Owner
The NetTech
Find the Uncommon: Expert Solutions for a Network You Never Have to Think About

Office: 866-642-7116
http://www.4nettech.com

This e-mail and attachments, if any, may contain confidential and/or proprietary information. Please be advised that the unauthorized use or disclosure of the information is strictly prohibited. The information herein is intended only for use by the intended recipient(s) named above. If you have received this transmission in error, please notify the sender immediately and permanently delete the e-mail and any copies, printouts or attachments thereof.


------------------------------------------------------------------------------
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


__________________________________________________
Correo Yahoo!
Espacio para todos tus mensajes, antivirus y antispam ¡gratis! 
Regístrate ya - http://correo.yahoo.com.mx/ 

------------------------------------------------------------------------------
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