nrpe issue on nagios server

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
ravish78
Posts: 269
Joined: Wed Mar 14, 2012 9:50 am

nrpe issue on nagios server

Post 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.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: nrpe issue on nagios server

Post 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
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: nrpe issue on nagios server

Post 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?
Be sure to check out our Knowledgebase for helpful articles and solutions!
ravish78
Posts: 269
Joined: Wed Mar 14, 2012 9:50 am

Re: nrpe issue on nagios server

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