issue with check_dhcp
Thierry Lacoste
lacoste at univ-paris12.fr
Mon Nov 27 15:22:05 CET 2006
Hello,
I'm using nagios-2.4 with nagios-plugins-1.4.3,1 on FreeBSD 6.1-RELEASE-p10.
I have a problem to make check_dhcp work.
dhclient works as expected:
[root at rigel ~]# dhclient em0
DHCPREQUEST on em0 to 255.255.255.255 port 67
DHCPREQUEST on em0 to 255.255.255.255 port 67
DHCPDISCOVER on em0 to 255.255.255.255 port 67 interval 5
DHCPDISCOVER on em0 to 255.255.255.255 port 67 interval 8
DHCPOFFER from 194.214.13.3
DHCPOFFER from 194.214.13.2
DHCPOFFER already seen.
DHCPREQUEST on em0 to 255.255.255.255 port 67
DHCPACK from 194.214.13.3
bound to 194.214.13.6 -- renewal in 21600 seconds.
But check_dhcp doesn't work (with dhclient killed):
[root at rigel ~]# /usr/local/libexec/nagios/check_dhcp -i em0 -v
DHCP socket: 3
Hardware address: 000d56bd84c5
DHCPDISCOVER to 255.255.255.255 port 67
DHCPDISCOVER XID: 1804289383 (0x6B8B4567)
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
Result=ERROR
Total responses seen on the wire: 0
Valid responses for this machine: 0
DHCP problem: No DHCPOFFERs were received.
The -s switch to specify the IP of a DHCP server doesn't help.
Using ethereal I can see one "DHCP Discover" packet sent and
nothing else.
I don't know if it is relevant but I noticed that the source adress
of this packet is the IP of the machine while the source address
of "DHCP Discover" packets issued by dhclient is 0.0.0.0.
Any tip would be appreciated.
Regards,
Thierry.
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
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