strange behavior with nrpe

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
rickje
Posts: 4
Joined: Mon Dec 05, 2011 8:46 am

strange behavior with nrpe

Post 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,
User avatar
jsmurphy
Posts: 989
Joined: Wed Aug 18, 2010 9:46 pm

Re: strange behavior with nrpe

Post 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.
rickje
Posts: 4
Joined: Mon Dec 05, 2011 8:46 am

Re: strange behavior with nrpe

Post by rickje »

thanks i will test tis and will come back to you as soon as possible.
rickje
Posts: 4
Joined: Mon Dec 05, 2011 8:46 am

Re: strange behavior with nrpe

Post 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.
User avatar
jsmurphy
Posts: 989
Joined: Wed Aug 18, 2010 9:46 pm

Re: strange behavior with nrpe

Post by jsmurphy »

You need to ensure you have the linux SSL and SSL-devel packages installed... that's why it's failing
katenavile
Posts: 1
Joined: Thu Jan 12, 2012 3:45 pm

Re: strange behavior with nrpe

Post 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.
Locked