Issues with NRPE install


#1

I downloaded and installed NRPE using the documentation at:

nagios.sourceforge.net/docs/nrpe/NRPE.pdf

I’m installing on CentOS 5.5. I followed the installation twice down to the T. Both times I get the same results. When I go to test the NRPE install via the following command:

/usr/local/nagios/libexec/check_nrpe -H localhost

I receive the error:

CHECK_NRPE: Error - Could not complete SSL handshake.

Someone told me to grep my error log and see if any NRPE errors are listed. I found the following:

grep nrpe /var/log/messages
Nov 3 12:59:08 gravity xinetd[25919]: FAIL: nrpe address from=127.0.0.1
Nov 3 12:59:08 gravity xinetd[25910]: START: nrpe pid=25919 from=127.0.0.1
Nov 3 12:59:08 gravity xinetd[25910]: EXIT: nrpe status=0 pid=25919 duration=0(sec)
Nov 3 18:13:27 gravity xinetd[26575]: FAIL: nrpe address from=127.0.0.1
Nov 3 18:13:27 gravity xinetd[25910]: START: nrpe pid=26575 from=127.0.0.1
Nov 3 18:13:27 gravity xinetd[25910]: EXIT: nrpe status=0 pid=26575 duration=0(sec)
Nov 3 18:13:39 gravity xinetd[26577]: FAIL: nrpe address from=127.0.0.1
Nov 3 18:13:39 gravity xinetd[25910]: START: nrpe pid=26577 from=127.0.0.1
Nov 3 18:13:39 gravity xinetd[25910]: EXIT: nrpe status=0 pid=26577 duration=0(sec)
Nov 3 18:18:22 gravity xinetd[26613]: FAIL: nrpe address from=10.0.0.31
Nov 3 18:18:22 gravity xinetd[26608]: START: nrpe pid=26613 from=10.0.0.31
Nov 3 18:18:22 gravity xinetd[26608]: EXIT: nrpe status=0 pid=26613 duration=0(sec)
Nov 3 18:18:43 gravity xinetd[26615]: FAIL: nrpe address from=127.0.0.1
Nov 3 18:18:43 gravity xinetd[26608]: START: nrpe pid=26615 from=127.0.0.1
Nov 3 18:18:43 gravity xinetd[26608]: EXIT: nrpe status=0 pid=26615 duration=0(sec)
Nov 3 18:23:15 gravity xinetd[2441]: FAIL: nrpe address from=127.0.0.1
Nov 3 18:23:15 gravity xinetd[2154]: START: nrpe pid=2441 from=127.0.0.1
Nov 3 18:23:15 gravity xinetd[2154]: EXIT: nrpe status=0 pid=2441 duration=0(sec)
Nov 3 18:23:22 gravity xinetd[2443]: FAIL: nrpe address from=10.0.0.31
Nov 3 18:23:22 gravity xinetd[2154]: START: nrpe pid=2443 from=10.0.0.31
Nov 3 18:23:22 gravity xinetd[2154]: EXIT: nrpe status=0 pid=2443 duration=0(sec)
Nov 3 18:41:51 gravity xinetd[19026]: FAIL: nrpe address from=127.0.0.1
Nov 3 18:41:51 gravity xinetd[19019]: START: nrpe pid=19026 from=127.0.0.1
Nov 3 18:41:51 gravity xinetd[19019]: EXIT: nrpe status=0 pid=19026 duration=0(sec)
Nov 3 18:44:29 gravity xinetd[19044]: FAIL: nrpe address from=127.0.0.1
Nov 3 18:44:29 gravity xinetd[19019]: START: nrpe pid=19044 from=127.0.0.1
Nov 3 18:44:29 gravity xinetd[19019]: EXIT: nrpe status=0 pid=19044 duration=0(sec)

I double checked and made sure that both /etc/xinetd.d/nrpe and /usr/local/nagios/etc/nrpe.cfg had the correct IP address of my monitoring server.

any ideas?


#2

I’m still having this issue. Is there anyone out there that can help?


#3

add to /etc/services
nrpe 5666/tcp # NRPE
service xinetd.d restart
check netstat -at | grep nrpe

see for more detail
thegeekstuff.com/2008/06/how … nagios-30/