check_nrpe SSL error
Andrade, Leonardo F. Buonsanti de (BR - Sao Paulo)
leoandrade at deloitte.com.br
Tue Jul 22 23:08:44 CEST 2003
Hi all,
I'm getting SSL errors all the time i try to make check_nrpe 2.0..
first, in a redhat box with ssl 0.9.6 it did'nt work, maybe because of the
openssl version.
now in a redhat 9 box with ssl 0.9.7a i got errors again..
if i compile check_nrpe without ssl and try to use it with nrpe_nt i get
"could not complete ssl handshake" error
here's the redhat 9 error:
[root at ftp nrpe-2.0b4]# make all
cd ./src/; make ; cd ..
make[1]: Entering directory `/root/nrpe-2.0b4/src'
gcc -g -O2 -I/usr/local/ssl/include/openssl -I/usr/kerberos/include
-DHAVE_CONFIG_H -L/usr/local/ssl/lib -lssl -lcrypto -o nrpe -lnsl nrpe.c
utils.c
/tmp/cczhgDDM.o(.text+0x6): In function `get_dh512':
/root/nrpe-2.0b4/src/dh.h:19: undefined reference to `DH_new'
/tmp/cczhgDDM.o(.text+0x1d):/root/nrpe-2.0b4/src/dh.h:20: undefined
reference to `BN_bin2bn'
/tmp/cczhgDDM.o(.text+0x31):/root/nrpe-2.0b4/src/dh.h:21: undefined
reference to `BN_bin2bn'
/tmp/cczhgDDM.o(.text+0x4b):/root/nrpe-2.0b4/src/dh.h:23: undefined
reference to `DH_free'
/tmp/cczhgDDM.o(.text+0x213): In function `main':
/root/nrpe-2.0b4/src/nrpe.c:252: undefined reference to `SSL_CTX_free'
/tmp/cczhgDDM.o(.text+0x2ca):/root/nrpe-2.0b4/src/nrpe.c:188: undefined
reference to `SSL_library_init'
/tmp/cczhgDDM.o(.text+0x2cf):/root/nrpe-2.0b4/src/nrpe.c:189: undefined
reference to `SSL_library_init'
/tmp/cczhgDDM.o(.text+0x2d4):/root/nrpe-2.0b4/src/nrpe.c:190: undefined
reference to `SSLv23_server_method'
/tmp/cczhgDDM.o(.text+0x2de):/root/nrpe-2.0b4/src/nrpe.c:191: undefined
reference to `SSL_load_error_strings'
/tmp/cczhgDDM.o(.text+0x2ec):/root/nrpe-2.0b4/src/nrpe.c:192: undefined
reference to `SSL_CTX_new'
/tmp/cczhgDDM.o(.text+0x306):/root/nrpe-2.0b4/src/nrpe.c:197: undefined
reference to `SSL_CTX_set_cipher_list'
/tmp/cczhgDDM.o(.text+0x31d):/root/nrpe-2.0b4/src/nrpe.c:199: undefined
reference to `SSL_CTX_ctrl'
/tmp/cczhgDDM.o(.text+0x326):/root/nrpe-2.0b4/src/nrpe.c:200: undefined
reference to `DH_free'
/tmp/cczhgDDM.o(.text+0xf73): In function `handle_connection':
/root/nrpe-2.0b4/src/nrpe.c:779: undefined reference to `SSL_shutdown'
/tmp/cczhgDDM.o(.text+0xf7f):/root/nrpe-2.0b4/src/nrpe.c:810: undefined
reference to `SSL_free'
/tmp/cczhgDDM.o(.text+0x1121):/root/nrpe-2.0b4/src/nrpe.c:930: undefined
reference to `SSL_shutdown'
/tmp/cczhgDDM.o(.text+0x112d):/root/nrpe-2.0b4/src/nrpe.c:931: undefined
reference to `SSL_free'
/tmp/cczhgDDM.o(.text+0x1170):/root/nrpe-2.0b4/src/nrpe.c:926: undefined
reference to `SSL_write'
/tmp/cczhgDDM.o(.text+0x13be):/root/nrpe-2.0b4/src/nrpe.c:764: undefined
reference to `SSL_shutdown'
/tmp/cczhgDDM.o(.text+0x13ca):/root/nrpe-2.0b4/src/nrpe.c:765: undefined
reference to `SSL_free'
/tmp/cczhgDDM.o(.text+0x13f8):/root/nrpe-2.0b4/src/nrpe.c:754: undefined
reference to `SSL_read'
/tmp/cczhgDDM.o(.text+0x140b):/root/nrpe-2.0b4/src/nrpe.c:725: undefined
reference to `SSL_new'
/tmp/cczhgDDM.o(.text+0x1424):/root/nrpe-2.0b4/src/nrpe.c:726: undefined
reference to `SSL_set_fd'
/tmp/cczhgDDM.o(.text+0x1430):/root/nrpe-2.0b4/src/nrpe.c:727: undefined
reference to `SSL_accept'
/tmp/cczhgDDM.o(.text+0x1447):/root/nrpe-2.0b4/src/nrpe.c:728: undefined
reference to `SSL_get_error'
collect2: ld returned 1 exit status
make[1]: *** [nrpe] Error 1
make[1]: Leaving directory `/root/nrpe-2.0b4/src'
*** Compile finished ***
If the NRPE daemon and client compiled without any errors, you
can continue with installation. The NRPE daemon and client
binaries are located in the src/ subdirectory.
** If this is your monitoring host **
- Copy the check_nrpe client to the directory that
contains your Nagios plugins.
- Create a command definition in your Nagios config
file for the NRPE client. See the README file for
more info on doing this.
** If this host will be running the NRPE daemon **
- Copy the nrpe daemon to /usr/sbin, /usr/local/nagios
or wherever you feel it fits best.
- Copy the sample nrpe.cfg config file to /etc,
/usr/local/nagios or wherever you feel it fits best.
- Modify the /etc/services file and configure NRPE to
run under inetd, xinetd, or as a standalone daemon.
See the README file for more info on doing this.
at redhat 7.3 i got this:
[root at monitor nrpe-2.0b4]# make all
cd ./src/; make ; cd ..
make[1]: Entering directory `/root/nrpe-2.0b4/src'
gcc -g -O2 -I/usr/local/ssl/include/openssl -I/usr/kerberos/include
-DHAVE_CONFIG_H -L/usr/local/ssl/lib -lssl -lcrypto -o nrpe -lnsl nrpe.c
utils.c
In file included from ../common/config.h:190,
from ../common/common.h:24,
from nrpe.c:21:
/usr/local/ssl/include/openssl/rsa.h:69:30: openssl/ossl_typ.h: No such file
or directory
In file included from ../common/config.h:192,
from ../common/common.h:24,
from nrpe.c:21:
/usr/local/ssl/include/openssl/dh.h:71:30: openssl/ossl_typ.h: No such file
or directory
In file included from ../common/config.h:194,
from ../common/common.h:24,
from nrpe.c:21:
/usr/local/ssl/include/openssl/ssl.h:179:26: openssl/kssl.h: No such file or
directory
In file included from ../common/config.h:196,
from ../common/common.h:24,
from nrpe.c:21:
/usr/local/ssl/include/openssl/rand.h:63:30: openssl/ossl_typ.h: No such
file or directory
In file included from ../common/config.h:190,
from ../common/common.h:24,
from utils.c:32:
/usr/local/ssl/include/openssl/rsa.h:69:30: openssl/ossl_typ.h: No such file
or directory
In file included from ../common/config.h:192,
from ../common/common.h:24,
from utils.c:32:
/usr/local/ssl/include/openssl/dh.h:71:30: openssl/ossl_typ.h: No such file
or directory
In file included from ../common/config.h:194,
from ../common/common.h:24,
from utils.c:32:
/usr/local/ssl/include/openssl/ssl.h:179:26: openssl/kssl.h: No such file or
directory
In file included from ../common/config.h:196,
from ../common/common.h:24,
from utils.c:32:
/usr/local/ssl/include/openssl/rand.h:63:30: openssl/ossl_typ.h: No such
file or directory
make[1]: *** [nrpe] Error 1
make[1]: Leaving directory `/root/nrpe-2.0b4/src'
*** Compile finished ***
If the NRPE daemon and client compiled without any errors, you
can continue with installation. The NRPE daemon and client
binaries are located in the src/ subdirectory.
** If this is your monitoring host **
- Copy the check_nrpe client to the directory that
contains your Nagios plugins.
- Create a command definition in your Nagios config
file for the NRPE client. See the README file for
more info on doing this.
** If this host will be running the NRPE daemon **
- Copy the nrpe daemon to /usr/sbin, /usr/local/nagios
or wherever you feel it fits best.
- Copy the sample nrpe.cfg config file to /etc,
/usr/local/nagios or wherever you feel it fits best.
- Modify the /etc/services file and configure NRPE to
run under inetd, xinetd, or as a standalone daemon.
See the README file for more info on doing this.
any ideas ???
Thanks in advance,
Leonardo
-------------------------------------------------------
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the
same time. Free trial click here: http://www.vmware.com/wl/offer/345/0
_______________________________________________
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