Hi <br><br>I tried to compile the plugin check_ dhcp from op5 but unsuccesfully:<br><br>linuxserver:/usr/local/nagios-1.3/libexec/OssOp5/plugins.op5/plugins# gcc -o check_dhcp check_dhcp.c<br>In file included from check_dhcp.c:40:
<br>common.h:69:21: config.h: No such file or directory<br>common.h:225:21: gettext.h: No such file or directory<br>In file included from check_dhcp.c:41:<br>netutils.h:38:20: config.h: No such file or directory<br>In file included from
netutils.h:39,<br> from check_dhcp.c:41:<br>utils.h:26: error: redefinition of `struct timeval'<br>utils.h:39: error: syntax error before "timeout_alarm_handler"<br>utils.h:39: warning: data definition has no type or storage class
<br>utils.h:65: warning: `struct timezone' declared inside parameter list<br>utils.h:65: warning: its scope is only this definition or declaration, which is probably not what you want<br>In file included from check_dhcp.c:41:
<br>netutils.h:43: error: syntax error before "socket_timeout_alarm_handler"<br>netutils.h:43: warning: data definition has no type or storage class<br>In file included from check_dhcp.c:58:<br>/usr/include/sys/time.h:73: error: conflicting types for `gettimeofday'
<br>utils.h:65: error: previous declaration of `gettimeofday'<br>In file included from check_dhcp.c:64:<br>/usr/include/netdb.h:539: error: redefinition of `struct addrinfo'<br>check_dhcp.c: In function `main':<br>check_dhcp.c:250: error: `LC_ALL' undeclared (first use in this function)
<br>check_dhcp.c:250: error: (Each undeclared identifier is reported only once<br>check_dhcp.c:250: error: for each function it appears in.)<br>check_dhcp.c:251: error: `PACKAGE' undeclared (first use in this function)<br>
check_dhcp.c:251: error: `LOCALEDIR' undeclared (first use in this function)<br>check_dhcp.c:255: warning: passing arg 1 of `usage' makes pointer from integer without a cast<br>check_dhcp.c: In function `get_hardware_address':
<br>check_dhcp.c:298: warning: passing arg 1 of `printf' makes pointer from integer without a cast<br>check_dhcp.c:307: warning: passing arg 1 of `printf' makes pointer from integer without a cast<br>check_dhcp.c:409: warning: passing arg 1 of `printf' makes pointer from integer without a cast
<br>check_dhcp.c: In function `send_dhcp_discover':<br>check_dhcp.c:494: warning: passing arg 1 of `printf' makes pointer from integer without a cast<br>check_dhcp.c: In function `get_dhcp_offer':<br>check_dhcp.c:544: warning: passing arg 1 of `printf' makes pointer from integer without a cast
<br>check_dhcp.c:548: warning: passing arg 1 of `printf' makes pointer from integer without a cast<br>check_dhcp.c:553: warning: passing arg 1 of `printf' makes pointer from integer without a cast<br>check_dhcp.c:562: warning: passing arg 1 of `printf' makes pointer from integer without a cast
<br>check_dhcp.c:579: warning: passing arg 1 of `printf' makes pointer from integer without a cast<br>check_dhcp.c:596: warning: passing arg 1 of `printf' makes pointer from integer without a cast<br>check_dhcp.c:597: warning: passing arg 1 of `printf' makes pointer from integer without a cast
<br>check_dhcp.c: In function `send_dhcp_packet':<br>check_dhcp.c:613: warning: passing arg 1 of `printf' makes pointer from integer without a cast<br>check_dhcp.c: In function `receive_dhcp_packet':<br>check_dhcp.c:646: warning: passing arg 1 of `printf' makes pointer from integer without a cast
<br>check_dhcp.c:670: warning: passing arg 1 of `printf' makes pointer from integer without a cast<br>check_dhcp.c:672: warning: passing arg 1 of `printf' makes pointer from integer without a cast<br>check_dhcp.c: In function `create_dhcp_socket':
<br>check_dhcp.c:701: warning: passing arg 1 of `printf' makes pointer from integer without a cast<br>check_dhcp.c:708: warning: passing arg 1 of `printf' makes pointer from integer without a cast<br>check_dhcp.c:714: warning: passing arg 1 of `printf' makes pointer from integer without a cast
<br>check_dhcp.c:725: warning: passing arg 1 of `printf' makes pointer from integer without a cast<br>check_dhcp.c:736: warning: passing arg 1 of `printf' makes pointer from integer without a cast<br>check_dhcp.c: In function `add_requested_server':
<br>check_dhcp.c:763: warning: passing arg 1 of `printf' makes pointer from integer without a cast<br>check_dhcp.c: In function `add_dhcp_offer':<br>check_dhcp.c:822: warning: passing arg 1 of `printf' makes pointer from integer without a cast
<br>check_dhcp.c:824: warning: passing arg 1 of `printf' makes pointer from integer without a cast<br>check_dhcp.c:826: warning: passing arg 1 of `printf' makes pointer from integer without a cast<br>check_dhcp.c:829: warning: passing arg 1 of `printf' makes pointer from integer without a cast
<br>check_dhcp.c:831: warning: passing arg 1 of `printf' makes pointer from integer without a cast<br>check_dhcp.c:833: warning: passing arg 1 of `printf' makes pointer from integer without a cast<br>check_dhcp.c:849: warning: passing arg 1 of `printf' makes pointer from integer without a cast
<br>check_dhcp.c:850: warning: passing arg 1 of `printf' makes pointer from integer without a cast<br>check_dhcp.c: In function `get_results':<br>check_dhcp.c:931: warning: passing arg 1 of `printf' makes pointer from integer without a cast
<br>check_dhcp.c:933: warning: passing arg 1 of `printf' makes pointer from integer without a cast<br>check_dhcp.c:972: warning: passing arg 1 of `printf' makes pointer from integer without a cast<br>check_dhcp.c:976: warning: passing arg 1 of `printf' makes pointer from integer without a cast
<br>check_dhcp.c:983: warning: passing arg 1 of `printf' makes pointer from integer without a cast<br>check_dhcp.c:988: warning: pointer/integer type mismatch in conditional expression<br>check_dhcp.c:988: warning: passing arg 1 of `printf' makes pointer from integer without a cast
<br>check_dhcp.c:990: warning: passing arg 1 of `printf' makes pointer from integer without a cast<br>check_dhcp.c:992: warning: passing arg 1 of `printf' makes pointer from integer without a cast<br>check_dhcp.c: In function `process_arguments':
<br>check_dhcp.c:1087: warning: passing arg 1 of `usage' makes pointer from integer without a cast<br>check_dhcp.c: In function `print_help':<br>check_dhcp.c:1271: warning: passing arg 1 of `printf' makes pointer from integer without a cast
<br>check_dhcp.c:1275: warning: passing arg 1 of `printf' makes pointer from integer without a cast<br><br><br><div><span class="gmail_quote">2006/1/24, Sloane, Robert Raymond <<a href="mailto:sloane@ku.edu">sloane@ku.edu
</a>>:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Download the latest op5 plugin set from <a href="http://oss.op5.se/nagios/">
http://oss.op5.se/nagios/</a> and<br>use that check_dhcp command. It has the capability to check across<br>subnets, and in general seems to work a lot better than the standard<br>plugin.<br>--<br>Bob Sloane, University of Kansas Computer Center, Lawrence, KS, 66045
<br><a href="mailto:Email:sloane@ku.edu">Email:sloane@ku.edu</a> <a href="http://www.ku.edu/home/sloane">http://www.ku.edu/home/sloane</a> Phone:(785)864-0444<br></blockquote></div><br>