Page 1 of 1

strange behavior with nrpe

Posted: Tue Feb 21, 2012 10:43 am
by rickje
Hello all,
I have a very strange behavior with nrpe v2.13

I have a setup of nagios working fine for monitoring mine windows systems (with nsclient) and all fedora systems.
Everything works fine.

But now i'am trying to ad a sles 9 system in mine monitoring system.
every time looks good also the instalaltion of nagios plugin and the nrpe.
but when i try to access the remote system from the nagios host i got the following

Code: Select all

 ./check_nrpe -H ip.address 
CHECK_NRPE: Socket timeout after 10 seconds.
 but with the -n option it works
 ./check_nrpe -H ip.address -n 
NRPE v2.13
how can i solve this, i can success telnet the remote system from the nagios host on port 5666.
also add the nagios host in the /etc/hosts.allow of the monitoring server.

All help is welcome.
regards,

Re: strange behavior with nrpe

Posted: Tue Feb 21, 2012 6:14 pm
by jsmurphy
If it's succeeding with -n then the remote server was probably installed without SSL, recompile NRPE on that server with the --with-ssl switch so when compiling:
./config --with-ssl

The -n switch tells it to not use SSL to encrypt traffic.

Re: strange behavior with nrpe

Posted: Thu Mar 08, 2012 11:54 am
by rickje
thanks i will test tis and will come back to you as soon as possible.

Re: strange behavior with nrpe

Posted: Fri Mar 09, 2012 8:35 am
by rickje
Hello thanks but it doesn't work for me when i execute the command ./configure --with-ssl
i got the following error:
/usr/lib64/gcc-lib/x86_64-suse-linux/3.3.3/../../../../x86_64-suse-linux/bin/ld: cannot find -lssl
collect2: ld returned 1 exit status
make[1]: *** [nrpe] Error 1
make[1]: Leaving directory `/tmp/nagios/nrpe-2.13/src'

*** Compile finished ***


this means that make exits with an error.

Re: strange behavior with nrpe

Posted: Mon Mar 12, 2012 5:03 pm
by jsmurphy
You need to ensure you have the linux SSL and SSL-devel packages installed... that's why it's failing

Re: strange behavior with nrpe

Posted: Mon Mar 26, 2012 11:32 am
by katenavile
I was also watching a strange behavior with nrpe v2.13. I tried to execute the command ./configure --with-ssl and I also got the same type of error. That’s to say:

/usr/lib64/gcc-lib/x86_64-suse-linux/3.3.3/../../../../x86_64-suse-linux/bin/ld: cannot find -lssl
collect2: ld returned 1 exit status
make[1]: *** [nrpe] Error 1
make[1]: Leaving directory `/tmp/nagios/nrpe-2.13/src'

I checked the installations of Linux SSL and SSL-devel packages. It appears the problem was there, because after checking those elements everything seems to be working well now. Thanks a lot.