PDA

View Full Version : nagios plugins compile error



machielr
23rd January 2008, 01:12 PM
Hi Everyone

I need the help of someone that knows Nagios please.

I am trying to install the plugin for nagios (running nagios 2.10) but I get the following output:

server:/home/machielr/nagios-plugins-1.4.11 # make
make all-recursive
make[1]: Entering directory `/home/machielr/nagios-plugins-1.4.11'
Making all in gl
make[2]: Entering directory `/home/machielr/nagios-plugins-1.4.11/gl'
make all-am
make[3]: Entering directory `/home/machielr/nagios-plugins-1.4.11/gl'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/home/machielr/nagios-plugins-1.4.11/gl'
make[2]: Leaving directory `/home/machielr/nagios-plugins-1.4.11/gl'
Making all in lib
make[2]: Entering directory `/home/machielr/nagios-plugins-1.4.11/lib'
Making all in tests
make[3]: Entering directory `/home/machielr/nagios-plugins-1.4.11/lib/tests'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/machielr/nagios-plugins-1.4.11/lib/tests'
make[3]: Entering directory `/home/machielr/nagios-plugins-1.4.11/lib'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/home/machielr/nagios-plugins-1.4.11/lib'
make[2]: Leaving directory `/home/machielr/nagios-plugins-1.4.11/lib'
Making all in plugins
make[2]: Entering directory `/home/machielr/nagios-plugins-1.4.11/plugins'
/bin/sh ../libtool --tag=CC --mode=link gcc -g -O2 -L. -o check_http check_http.o sslutils.o netutils.o utils.o ../lib/libnagiosplug.a ../gl/libgnu.a -lnsl -lresolv -lssl -lcrypto
gcc -g -O2 -o check_http check_http.o sslutils.o netutils.o utils.o -L/home/machielr/nagios-plugins-1.4.11/plugins ../lib/libnagiosplug.a ../gl/libgnu.a -lnsl -lresolv -lssl -lcrypto
check_http.o(.text+0x11d4): In function `check_http':
/home/machielr/nagios-plugins-1.4.11/plugins/check_http.c:785: undefined reference to `np_net_ssl_write'
check_http.o(.text+0x120b):/home/machielr/nagios-plugins-1.4.11/plugins/check_http.c:789: undefined reference to `np_net_ssl_read'
check_http.o(.text+0x12bd):/home/machielr/nagios-plugins-1.4.11/plugins/check_http.c:828: undefined reference to `np_net_ssl_cleanup'
check_http.o(.text+0x14f4):/home/machielr/nagios-plugins-1.4.11/plugins/check_http.c:734: undefined reference to `np_net_ssl_init'
check_http.o(.text+0x1513):/home/machielr/nagios-plugins-1.4.11/plugins/check_http.c:736: undefined reference to `np_net_ssl_check_cert'
check_http.o(.text+0x151a):/home/machielr/nagios-plugins-1.4.11/plugins/check_http.c:737: undefined reference to `np_net_ssl_cleanup'
collect2: ld returned 1 exit status
make[2]: *** [check_http] Error 1
make[2]: Leaving directory `/home/machielr/nagios-plugins-1.4.11/plugins'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/machielr/nagios-plugins-1.4.11'
make: *** [all] Error 2


Can someone please assist by telling me why the plugin make does not work?

thank you

glennzo
23rd January 2008, 01:21 PM
I don't know nagios but I wonder if you did ./configure before make.

machielr
28th January 2008, 02:57 PM
HI everyone,


I am trying to install the nagios plugins (1.4.11) and get the following output and I hope someone will be able to assist me with some suggestions on how to fix this:

# make
make all-recursive
make[1]: Entering directory `/home/machielr/nagios-plugins-1.4.11'
Making all in gl
make[2]: Entering directory `/home/machielr/nagios-plugins-1.4.11/gl'
make all-am
make[3]: Entering directory `/home/machielr/nagios-plugins-1.4.11/gl'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/home/machielr/nagios-plugins-1.4.11/gl'
make[2]: Leaving directory `/home/machielr/nagios-plugins-1.4.11/gl'
Making all in lib
make[2]: Entering directory `/home/machielr/nagios-plugins-1.4.11/lib'
Making all in tests
make[3]: Entering directory `/home/machielr/nagios-plugins-1.4.11/lib/tests'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/machielr/nagios-plugins-1.4.11/lib/tests'
make[3]: Entering directory `/home/machielr/nagios-plugins-1.4.11/lib'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/home/machielr/nagios-plugins-1.4.11/lib'
make[2]: Leaving directory `/home/machielr/nagios-plugins-1.4.11/lib'
Making all in plugins
make[2]: Entering directory `/home/machielr/nagios-plugins-1.4.11/plugins'
/bin/sh ../libtool --tag=CC --mode=link gcc -g -O2 -L. -o check_http check_http.o sslutils.o netutils.o utils.o ../lib/libnagiosplug.a ../gl/libgnu.a -lnsl -lresolv -lssl -lcrypto
gcc -g -O2 -o check_http check_http.o sslutils.o netutils.o utils.o -L/home/machielr/nagios-plugins-1.4.11/plugins ../lib/libnagiosplug.a ../gl/libgnu.a -lnsl -lresolv -lssl -lcrypto
check_http.o(.text+0x11d4): In function `check_http':
/home/machielr/nagios-plugins-1.4.11/plugins/check_http.c:785: undefined reference to `np_net_ssl_write'
check_http.o(.text+0x120b):/home/machielr/nagios-plugins-1.4.11/plugins/check_http.c:789: undefined reference to `np_net_ssl_read'
check_http.o(.text+0x12bd):/home/machielr/nagios-plugins-1.4.11/plugins/check_http.c:828: undefined reference to `np_net_ssl_cleanup'
check_http.o(.text+0x14f4):/home/machielr/nagios-plugins-1.4.11/plugins/check_http.c:734: undefined reference to `np_net_ssl_init'
check_http.o(.text+0x1513):/home/machielr/nagios-plugins-1.4.11/plugins/check_http.c:736: undefined reference to `np_net_ssl_check_cert'
check_http.o(.text+0x151a):/home/machielr/nagios-plugins-1.4.11/plugins/check_http.c:737: undefined reference to `np_net_ssl_cleanup'
collect2: ld returned 1 exit status
make[2]: *** [check_http] Error 1
make[2]: Leaving directory `/home/machielr/nagios-plugins-1.4.11/plugins'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/machielr/nagios-plugins-1.4.11'
make: *** [all] Error 2


I have already installed nagios and it is running fine but I need the plugins in order to actually be able to monitor the servers and services.


All help and suggestions will be greatly appreciated.


tx

stevea
28th January 2008, 03:21 PM
In the "teach a man to fish " category of advice I suggest you google "np_net_ssl_write".

Someone suggest "make clean; make" but I have some doubts.
The missing terms [np_net_ssl_write, np_net_ssl_read, ...] *sound* like they are part of the nagios plugin "np_..." so you may have to see why these aren't included.

leigh123linux
28th January 2008, 04:56 PM
Please don't double post again

Threads merged

sinrize
10th June 2008, 05:44 PM
try:

#yum install gcc
#yum install openssl-devel
#yum install mysql-devel

#make clean
#make
#make install

xawen
10th June 2008, 06:09 PM
The nagios plugins are in one of the repositories..not sure which one I used, can't get to my machine right now. It's got to be either freshrpms or livna.

That will probably take care of most of your needs. Compiling those things from scratch is a huge pain...more than is worth if the plugin you want is in the repository. They have a ton of strange dependencies to resolve, then once you do you'll have a bunch of scripts that reference perl mods you won't have installed... It took me two days the first time, then I found them in the repository.

machielr
11th June 2008, 07:46 AM
Hi Guys

THank you for all the suggestions.


The problem is that we are running SLES 9 on the specific machine though so I have not been able to get yum working on the machine.


I must also let you know that I have in the meantime got the plugins installed. can't remember how though, its been a while.


I only need to get the status map and reporting sorted out now, but due to some work constraints in terms of time I have not been able to get to this.

mliras
7th September 2009, 11:52 AM
I got to fix this issue by downloading (and installing) nagios-plugins v1.4.13 instead of v1.4.6

Good Luck!