Plugins - check_icmp on Solaris
Andreas Ericsson
ae at op5.se
Thu May 5 16:04:32 CEST 2005
Download latest CVS snapshot, or download the check_icmp from its own
distro site at http://oss.op5.se/nagios where you will find one that
supports systems with more than 16bit pid_t.
Alternatively, you can do
gcc -O2 check_icmp.c -o check_icmp -lnsl -lsocket
Make sure to
chown root:nagios check_icmp
chmod 4750 check_icmp
or it won't be able to get the raw sockets it needs.
Brian Huffman wrote:
> Has anyone found a solution for the compile problem for the
> nagios-plugins-1.4 check_icmp plugin for Solaris? I still get these
> problems:
>
> make[2]: Entering directory `/opt/bhuffman/nagios-plugins-1.4/plugins'
> gcc -g -O2 -L. -R/usr/local/openssl/lib -L/usr/local/openssl/lib -o
> check_icmp check_icmp.o ../intl/libintl.a -liconv -lgen -lsocket
> -I/usr/local/openssl/include
> Undefined first referenced
> symbol in file
> gethostbyname check_icmp.o (symbol belongs to
> implicit dependency /usr/lib/libnsl.so.1)
> inet_ntoa check_icmp.o (symbol belongs to
> implicit dependency /usr/lib/libnsl.so.1)
> inet_addr check_icmp.o (symbol belongs to
> implicit dependency /usr/lib/libnsl.so.1)
> ld: fatal: Symbol referencing errors. No output written to check_icmp
> collect2: ld returned 1 exit status
>
> And then when I add $(NETLIBS) to the Makefile, these go away and I get:
>
>
> gcc -g -O2 -L. -R/usr/local/openssl/lib -L/usr/local/openssl/lib -o
> check_icmp check_icmp.o netutils.o utils.o ../lib/libnagiosplug.a
> ../lib/libcoreutils.a -lnsl -lsocket -lresolv ../intl/libintl.a -liconv
> -lgen -lsocket -I/usr/local/openssl/include
> Undefined first referenced
> symbol in file
> timeout_interval utils.o
> print_usage utils.o
> progname utils.o
> ld: fatal: Symbol referencing errors. No output written to check_icmp
> collect2: ld returned 1 exit status
> make: *** [check_icmp] Error 1
>
> Thanks!
> Brian
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by: NEC IT Guy Games.
> Get your fingers limbered up and give it your best shot. 4 great events, 4
> opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
> win an NEC 61 plasma display. Visit http://www.necitguy.com/?r
> _______________________________________________
> 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
>
--
Andreas Ericsson andreas.ericsson at op5.se
OP5 AB www.op5.se
Lead Developer
-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4
opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20
_______________________________________________
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