check_dhcp doesn't work from server

Hari Sekhon hpsekhon at googlemail.com
Thu Sep 21 12:19:39 CEST 2006


I've put a dhcp server on the same host as the nagios server, and it's 
running but check_dhcp doesn't work from the server.

/usr/nagios/libexec/check_dhcp -i eth1 -v
DHCP socket: 3
Hardware address: 00095be058c7
DHCPDISCOVER to 255.255.255.255 port 67
DHCPDISCOVER XID: 772340585 (0x2E08FB69)
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.


but when I do it from another machine I get a successful result

/usr/nagios/libexec/check_dhcp -v
DHCP socket: 3
Hardware address: 00e08142504b
DHCPDISCOVER to 255.255.255.255 port 67
DHCPDISCOVER XID: 854145870 (0x32E93B4E)
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




recv_result_1: 308
recv_result_2: 308
receive_dhcp_packet() result: 308
receive_dhcp_packet() source: 192.168.1.89
Result=OK
DHCPOFFER from IP address 192.168.1.89
DHCPOFFER XID: 854145870 (0x32E93B4E)
DHCPOFFER chaddr: 00E08142504B
DHCPOFFER ciaddr: 0.0.0.0
DHCPOFFER yiaddr: 192.168.1.242
DHCPOFFER siaddr: 0.0.0.0
DHCPOFFER giaddr: 0.0.0.0
Option: 53 (0x01)
Option: 54 (0x04)
Option: 51 (0x04)
Option: 1 (0x04)
Option: 3 (0x04)
Option: 6 (0x04)
Option: 58 (0x04)
Option: 59 (0x04)
Lease Time: 3600 seconds
Renewal Time: 1800 seconds
Rebinding Time: 3150 seconds
Added offer from server @ 192.168.1.89 of IP address 192.168.1.242


No (more) data received
Result=ERROR
Total responses seen on the wire: 1
Valid responses for this machine: 1
DHCP ok: Received 1 DHCPOFFER(s), max lease time = 3600 sec.




Why can't I check the dhcp server from the serving machine?

-- 
Hari Sekhon


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