check_dhcp not working

Toto Capuccino shoktai at gmail.com
Tue Jan 24 17:01:20 CET 2006


Hi

I tried to compile the plugin check_ dhcp from op5 but unsuccesfully:

linuxserver:/usr/local/nagios-1.3/libexec/OssOp5/plugins.op5/plugins# gcc -o
check_dhcp check_dhcp.c
In file included from check_dhcp.c:40:
common.h:69:21: config.h: No such file or directory
common.h:225:21: gettext.h: No such file or directory
In file included from check_dhcp.c:41:
netutils.h:38:20: config.h: No such file or directory
In file included from netutils.h:39,
                 from check_dhcp.c:41:
utils.h:26: error: redefinition of `struct timeval'
utils.h:39: error: syntax error before "timeout_alarm_handler"
utils.h:39: warning: data definition has no type or storage class
utils.h:65: warning: `struct timezone' declared inside parameter list
utils.h:65: warning: its scope is only this definition or declaration, which
is probably not what you want
In file included from check_dhcp.c:41:
netutils.h:43: error: syntax error before "socket_timeout_alarm_handler"
netutils.h:43: warning: data definition has no type or storage class
In file included from check_dhcp.c:58:
/usr/include/sys/time.h:73: error: conflicting types for `gettimeofday'
utils.h:65: error: previous declaration of `gettimeofday'
In file included from check_dhcp.c:64:
/usr/include/netdb.h:539: error: redefinition of `struct addrinfo'
check_dhcp.c: In function `main':
check_dhcp.c:250: error: `LC_ALL' undeclared (first use in this function)
check_dhcp.c:250: error: (Each undeclared identifier is reported only once
check_dhcp.c:250: error: for each function it appears in.)
check_dhcp.c:251: error: `PACKAGE' undeclared (first use in this function)
check_dhcp.c:251: error: `LOCALEDIR' undeclared (first use in this function)
check_dhcp.c:255: warning: passing arg 1 of `usage' makes pointer from
integer without a cast
check_dhcp.c: In function `get_hardware_address':
check_dhcp.c:298: warning: passing arg 1 of `printf' makes pointer from
integer without a cast
check_dhcp.c:307: warning: passing arg 1 of `printf' makes pointer from
integer without a cast
check_dhcp.c:409: warning: passing arg 1 of `printf' makes pointer from
integer without a cast
check_dhcp.c: In function `send_dhcp_discover':
check_dhcp.c:494: warning: passing arg 1 of `printf' makes pointer from
integer without a cast
check_dhcp.c: In function `get_dhcp_offer':
check_dhcp.c:544: warning: passing arg 1 of `printf' makes pointer from
integer without a cast
check_dhcp.c:548: warning: passing arg 1 of `printf' makes pointer from
integer without a cast
check_dhcp.c:553: warning: passing arg 1 of `printf' makes pointer from
integer without a cast
check_dhcp.c:562: warning: passing arg 1 of `printf' makes pointer from
integer without a cast
check_dhcp.c:579: warning: passing arg 1 of `printf' makes pointer from
integer without a cast
check_dhcp.c:596: warning: passing arg 1 of `printf' makes pointer from
integer without a cast
check_dhcp.c:597: warning: passing arg 1 of `printf' makes pointer from
integer without a cast
check_dhcp.c: In function `send_dhcp_packet':
check_dhcp.c:613: warning: passing arg 1 of `printf' makes pointer from
integer without a cast
check_dhcp.c: In function `receive_dhcp_packet':
check_dhcp.c:646: warning: passing arg 1 of `printf' makes pointer from
integer without a cast
check_dhcp.c:670: warning: passing arg 1 of `printf' makes pointer from
integer without a cast
check_dhcp.c:672: warning: passing arg 1 of `printf' makes pointer from
integer without a cast
check_dhcp.c: In function `create_dhcp_socket':
check_dhcp.c:701: warning: passing arg 1 of `printf' makes pointer from
integer without a cast
check_dhcp.c:708: warning: passing arg 1 of `printf' makes pointer from
integer without a cast
check_dhcp.c:714: warning: passing arg 1 of `printf' makes pointer from
integer without a cast
check_dhcp.c:725: warning: passing arg 1 of `printf' makes pointer from
integer without a cast
check_dhcp.c:736: warning: passing arg 1 of `printf' makes pointer from
integer without a cast
check_dhcp.c: In function `add_requested_server':
check_dhcp.c:763: warning: passing arg 1 of `printf' makes pointer from
integer without a cast
check_dhcp.c: In function `add_dhcp_offer':
check_dhcp.c:822: warning: passing arg 1 of `printf' makes pointer from
integer without a cast
check_dhcp.c:824: warning: passing arg 1 of `printf' makes pointer from
integer without a cast
check_dhcp.c:826: warning: passing arg 1 of `printf' makes pointer from
integer without a cast
check_dhcp.c:829: warning: passing arg 1 of `printf' makes pointer from
integer without a cast
check_dhcp.c:831: warning: passing arg 1 of `printf' makes pointer from
integer without a cast
check_dhcp.c:833: warning: passing arg 1 of `printf' makes pointer from
integer without a cast
check_dhcp.c:849: warning: passing arg 1 of `printf' makes pointer from
integer without a cast
check_dhcp.c:850: warning: passing arg 1 of `printf' makes pointer from
integer without a cast
check_dhcp.c: In function `get_results':
check_dhcp.c:931: warning: passing arg 1 of `printf' makes pointer from
integer without a cast
check_dhcp.c:933: warning: passing arg 1 of `printf' makes pointer from
integer without a cast
check_dhcp.c:972: warning: passing arg 1 of `printf' makes pointer from
integer without a cast
check_dhcp.c:976: warning: passing arg 1 of `printf' makes pointer from
integer without a cast
check_dhcp.c:983: warning: passing arg 1 of `printf' makes pointer from
integer without a cast
check_dhcp.c:988: warning: pointer/integer type mismatch in conditional
expression
check_dhcp.c:988: warning: passing arg 1 of `printf' makes pointer from
integer without a cast
check_dhcp.c:990: warning: passing arg 1 of `printf' makes pointer from
integer without a cast
check_dhcp.c:992: warning: passing arg 1 of `printf' makes pointer from
integer without a cast
check_dhcp.c: In function `process_arguments':
check_dhcp.c:1087: warning: passing arg 1 of `usage' makes pointer from
integer without a cast
check_dhcp.c: In function `print_help':
check_dhcp.c:1271: warning: passing arg 1 of `printf' makes pointer from
integer without a cast
check_dhcp.c:1275: warning: passing arg 1 of `printf' makes pointer from
integer without a cast


2006/1/24, Sloane, Robert Raymond <sloane at ku.edu>:
>
> Download the latest op5 plugin set from http://oss.op5.se/nagios/ and
> use that check_dhcp command.  It has the capability to check across
> subnets, and in general seems to work a lot better than the standard
> plugin.
> --
> Bob Sloane, University of Kansas Computer Center, Lawrence, KS, 66045
> Email:sloane at ku.edu http://www.ku.edu/home/sloane Phone:(785)864-0444
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20060124/6a549bad/attachment.html>


More information about the Users mailing list