[Nagiosplug-help] Compile issue

Esben Bach esben at cs.aau.dk
Sat Mar 17 11:40:43 CET 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi

Marc Belanger wrote:
> Greetings all,
> 
> Brand new Solaris 10 with nagios 2.7. I'm trying to ./confgure | make the
> plugins. I 'm seeing errors on a few of the check_commands. Notably
> check_http, and check_procs -- which is of course the 2 I need the most.
> I've googled around, edited config.h for procs and tried --withour-openssl
> for http tried to manually make them in the plugin directory after a
> succesfull ./configure.
> 
> First some system info:
> root @ paranoid: /usr/local/nagios/bin/nagios -v
> 
> Nagios 2.7
> Copyright (c) 1999-2007 Ethan Galstad (http://www.nagios.org)
> Last Modified: 01-19-2007
> 
> root @ paranoid: uname -a
> SunOS paranoid 5.10 Generic_118822-25 sun4v sparc SUNW,Sun-Fire-T200
> 
> root @ paranoid: gcc --version
> gcc (GCC) 3.4.6
> Copyright (C) 2006 Free Software Foundation, Inc.
> This is free software; see the source for copying conditions.  There is NO
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
> 
> root @ paranoid: ssh -V
> Sun_SSH_1.1, SSH protocols 1.5/2.0, OpenSSL 0x0090704f
> 
> root @ paranoid: openssl version
> OpenSSL 0.9.7d 17 Mar 2004
> 
> root @ paranoid: pwd
> /tmp/nagios-plugins-1.4.6
> 
> =========================================
> 
> And here are the errors
> root @ paranoid: make check_http
> /bin/bash ../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 -lsocket -lresolv  -lnsl -lsocket
> gcc -g -O2 -o check_http check_http.o sslutils.o netutils.o utils.o
> -L/tmp/nagios-plugins-1.4.6/plugins ../lib/libnagiosplug.a ../gl/libgnu.a
> -lresolv -lnsl -lsocket
> Undefined                       first referenced
> symbol                             in file
> SSL_load_error_strings              sslutils.o
> SSL_write                           sslutils.o
> OpenSSL_add_all_algorithms          sslutils.o
> SSL_set_fd                          sslutils.o
> SSL_free                            sslutils.o
> SSL_read                            sslutils.o
> SSLv23_client_method                sslutils.o
> SSL_new                             sslutils.o
> SSL_CTX_new                         sslutils.o
> SSL_connect                         sslutils.o
> SSL_shutdown                        sslutils.o
> SSL_CTX_free                        sslutils.o
> SSL_library_init                    sslutils.o
> ld: fatal: Symbol referencing errors. No output written to check_http
> collect2: ld returned 1 exit status
> *** Error code 1
> make: Fatal error: Command failed for target `check_http'
> 
> root @ paranoid: ./check_procs -w 10 -c 20 --metric=CPU
> CRITICAL - Plugin timed out after 10 seconds
> 

As i can't see if you had any errors with your compile on the
check_procs i don't know if this will help.
Anyway i compiled my plugin package with the following configure command:

./configure --with-openssl=/usr/sfw --without-mysql
- --with-perl=/usr/bin/perl --with-ps_command="/usr/bin/ps -eo 's uid pid
ppid vsz rss pcpu etime comm args'" --with-ps_format='%s %d %d %d %d %d
%f %s %s %n' --with-ps_cols=10
-
--with-ps_varlist='procstat,&procuid,&procpid,&procppid,&procvsz,&procrss,&procpcpu,procetime,procprog,&pos'

All the --with-ps should fix your check_procs problem (it did for me), i
 don't know where you have openssl installed or if this will even help
on your http problem.

- --
Esben
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org

iD8DBQFF+8WrqF3vTC9LTWIRAi+8AJ9E0dlD5M+9F4Jsr0QswNRjfSUwegCdHBxJ
+QTCiCxsixlMcaTp2cAePyE=
=0AcU
-----END PGP SIGNATURE-----




More information about the Help mailing list