Page 1 of 1

nrpe issue on nagios server

Posted: Wed Mar 27, 2013 2:46 pm
by ravish78
Team

We are getting nrpe issue on nagios server.Can you let us know what is the probelm.

Below is output

tmproot@usa7061lv955>./check_nrpe -H localhost
CHECK_NRPE: Error - Could not complete SSL handshake.

tmproot@usa7061lv955>telnet localhost 5666
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
Connection closed by foreign host.

Re: nrpe issue on nagios server

Posted: Wed Mar 27, 2013 2:57 pm
by slansing
Hello ravish, please take a look at the following document, it outlines the most common errors you will see with NRPE and how to best resolve them:

http://assets.nagios.com/downloads/nagi ... utions.pdf

Re: nrpe issue on nagios server

Posted: Wed Mar 27, 2013 2:59 pm
by lmiltchev
Most probably, you haven't added 127.0.0.1 to "/etc/xinetd.d/nrpe" file:

Code: Select all

only_from       = 127.0.0.1
After you add it, restart the daemon:

Code: Select all

service xinetd restart
and try your check again.

Why do you want to run check_nrpe against localhost anyway?

Re: nrpe issue on nagios server

Posted: Wed Mar 27, 2013 3:13 pm
by ravish78
Issue was solved .You can close this.

Problem is with /usr/local/nagios/etc/nrpe.cfg file.

Some unknown characters we re added.Removing them and restrating worked