Problem with the compilation of the Nagios plugins (nagios-plugins-1.4-beta1.tar.gz)

Andreas Ericsson ae at op5.se
Thu Jan 13 08:13:52 CET 2005


Ronan PLANTEC wrote:
> I don't find any mailing list for the Nagios plugins so I post here...
> 

Look again. This is a known issue. Download CVS HEAD and compile.

> I am using a Debian testing sarge.
> I am installing nagios 2.0b with the following plugins .
> My problem is that I can't compil the plugins with the make command 
> although the result of the configure command seems to be OK.
> (N.B.: the name of my computer is NMStest).
> 
> ------------------------------------------------------------------------------------------------------------------------------------------------------------------- 
> 
> NMStest:/usr/local/src/nagios-plugins-1.4-beta1# ./configure 
> --prefix=/usr/local/nagios --with-nagios-user=nagios 
> --with-nagios-group=nagios --with-cgiurl=/nagios/cgi-bin
> .
> .
> .
> config.status: creating po/Makefile
>                    --with-cgiurl: /nagios/cgi-bin
>               --with-nagios-user: nagios
>              --with-nagios-group: nagios
>              --with-trusted-path: /bin:/sbin:/usr/bin:/usr/sbin
>              --with-ping-command: /bin/ping -n -U -w %d -c %d %s
>             --with-ping6-command:
>                     --with-lwres: no
>                      --with-ipv6: yes
>                   --with-openssl: no
>     --enable-emulate-getaddrinfo: no
> NMStest:/usr/local/src/nagios-plugins-1.4-beta1#
> ------------------------------------------------------------------------------------------------------------------------------------------------------------------- 
> 
> 
> NMStest:/usr/local/src/nagios-plugins-1.4-beta1# make
> make  all-recursive
> make[1]: Entering directory `/usr/local/src/nagios-plugins-1.4-beta1'
> Making all in intl
> make[2]: Entering directory `/usr/local/src/nagios-plugins-1.4-beta1/intl'
> make[2]: Rien à faire pour « all ».
> make[2]: Leaving directory `/usr/local/src/nagios-plugins-1.4-beta1/intl'
> Making all in lib
> make[2]: Entering directory `/usr/local/src/nagios-plugins-1.4-beta1/lib'
> make  all-am
> make[3]: Entering directory `/usr/local/src/nagios-plugins-1.4-beta1/lib'
> make[3]: Rien à faire pour « all-am ».
> make[3]: Leaving directory `/usr/local/src/nagios-plugins-1.4-beta1/lib'
> make[2]: Leaving directory `/usr/local/src/nagios-plugins-1.4-beta1/lib'
> Making all in plugins
> make[2]: Entering directory 
> `/usr/local/src/nagios-plugins-1.4-beta1/plugins'
> gcc  -g -O2  -L. -o check_smtp  check_smtp.o netutils.o utils.o 
> ../lib/libnagiosplug.a ../lib/libcoreutils.a  -lnsl -lresolv  -I/include
> check_smtp.o(.text+0x909): In function `process_arguments':
> /usr/local/src/nagios-plugins-1.4-beta1/plugins/check_smtp.c:456: 
> undefined reference to `terminate'
> collect2: ld a retourné 1 code d'état d'exécution
> make[2]: *** [check_smtp] Erreur 1
> make[2]: Leaving directory 
> `/usr/local/src/nagios-plugins-1.4-beta1/plugins'
> make[1]: *** [all-recursive] Erreur 1
> make[1]: Leaving directory `/usr/local/src/nagios-plugins-1.4-beta1'
> make: *** [all] Erreur 2
> NMStest:/usr/local/src/nagios-plugins-1.4-beta1#
> ------------------------------------------------------------------------------------------------------------------------------------------------------------------ 
> 
> The plugins check_ping, check_disk, check_dhcp etc are recorded in this 
> directory /usr/local/src/nagios-plugins-1.4-beta1/plugins instead of 
> /usr/local/nagios/libexec as described in the documentation.
> 
> Does anyone can help me to compil please ?
> 
> Regards
> 
> 
> -------------------------------------------------------
> The SF.Net email is sponsored by: Beat the post-holiday blues
> Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
> It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
> _______________________________________________
> 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



-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
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