[Nagiosplug-devel] Solaris 9 vs. check_dhcp (today's CVS)
Harper Mann
hmann at itgroundwork.com
Wed Dec 22 17:15:06 CET 2004
Hi,
Has anyone tried check_dhcp on Solaris 9? Mine was built today off the
current nagiosplug cvs.
[root at bern plugins]$ ifconfig -a
lo0: flags=1000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4> mtu 8232 index 1
inet 127.0.0.1 netmask ff000000
eri0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
inet 192.168.2.58 netmask ffffff00 broadcast 192.168.2.255
ether 0:3:ba:7a:c3:55
[root at bern plugins]$ gdb ./check_dhcp
GNU gdb 6.1
Copyright blah
This GDB was configured as "sparc-sun-solaris2.8"...
(gdb) run -i eri0
Starting program: /home/hmann/nagiosplug/plugins/check_dhcp -i eri0
Program received signal SIGSEGV, Segmentation fault.
0x00012668 in add_dhcp_offer (source=
{S_un = {S_un_b = {s_b1 = 192 'À', s_b2 = 168 '¨', s_b3 = 2 '\002',
s_b4 = 1 '\001'}, S_un_w = {s_w1 = 49320, s_w2 = 513}, S_addr =
3232236033}},
offer_packet=0xffbff9e8) at check_dhcp.c:774
774 dhcp_lease_time=ntohl(*((u_int32_t
*)&offer_packet->options[x]));
(gdb) bt
#0 0x00012668 in add_dhcp_offer (source=
{S_un = {S_un_b = {s_b1 = 192 'À', s_b2 = 168 '¨', s_b3 = 2 '\002',
s_b4 = 1 '\001'}, S_un_w = {s_w1 = 49320, s_w2 = 513}, S_addr =
3232236033}},
offer_packet=0xffbff9e8) at check_dhcp.c:774
#1 0x00012ad4 in get_dhcp_offer (sock=7) at check_dhcp.c:556
#2 0x000136a8 in main (argc=3, argv=0xffbffcf4) at check_dhcp.c:258
Anyone seen this? It seems to broadcast okay and fails receiving the lease.
Regards,
- Harper
Harper Mann
Groundwork Open Source Solutions
510-599-2075 (cell)
http://itgroundwork.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nagios-plugins.org/archive/devel/attachments/20041222/666042f0/attachment.html>
More information about the Devel
mailing list