check_dhcp

Hari Sekhon hpsekhon at googlemail.com
Wed Apr 18 12:06:05 CEST 2007


the first test just checks to see if someone gives a dhcp lease.

the second will fail unless that specific server gives a dhcp lease.

it's possible you have a dhcp server trying to give a 0 second lease or 
the plugin may have a bug, are you sure it said 1 DHCPOFFER and max 
lease time 0 seconds?

try -vvv to see who is giving you these leases.

You generally only need 1 dhcp server per subnet or if you have more you 
should make sure they have non-overlapping address pools. I actually 
made a wrapper script to this to actually warn me of rogue dhcp servers 
on the network after an incident with some clumsy person installing 
vmware with it's dhcp and sending a laptop off to the wrong subnet... so 
you might want to check why the second attempt says you had 3 DHCPOFFERS.

I would investigate if that was the case on my network...

-h

Hari Sekhon



abid dar wrote:
> Having a weird situation..
>
> /usr/local/nagios/libexec/check_dhcp
> DHCP ok: Received 1 DHCPOFFER(s), max lease time = 0 sec.
>
> /usr/local/nagios/libexec/check_dhcp -s xx.xxx.xxx.xxx (our dhcp server)
> DHCP problem: Received 3 DHCPOFFER(s), 0 of 1 requested servers responded, max lease time = 284400 sec.
>
> why is it getting a DHCP okay when I do flat check_dhcp but when I specify I dont get a valid response.
>
> Also, the verbose option does not give any more information.. but thats not really important..
>
> Any thoughts?
>
>
>
>
>
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around 
> http://mail.yahoo.com 
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> 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
>
>   

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
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