NRPE: Unable to read out put

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
tonyyarusso
Posts: 1128
Joined: Wed Mar 03, 2010 12:38 pm
Location: St. Paul, MN, USA
Contact:

Re: NRPE: Unable to read out put

Post by tonyyarusso »

Which I believe means that the NRPE is Running and working on the Nagios Server right?
Yes.
I did not understand the latter part of your reply.
Since you talked about multiple ways of installing things (through yum, from source, etc.), it's unclear which result you're actually using, and you may have a mess where multiple copies are installed, pointing to things in different places. You can use the following to check which config file is actually being used by whatever one is running:

Code: Select all

[root@vs2 ~]# ps aux | grep nrpe
nagios    3843  0.0  0.0  39976   652 ?        Ss   Feb10  13:27 nrpe -c /etc/nagios/nrpe.cfg -d
Here the path to the nrpe.cfg is /etc/nagios/nrpe.cfg - this should match the one you're looking in for the command definitions. If it does, run your check_disk command directly on the target system to make sure that works, and then run the check_nrpe command from a shell on the monitoring server. Running directly from a shell will frequently give you more useful error output than what ultimately gets displayed in Nagios, so that should help narrow down where the issue is.
Tony Yarusso
Technical Services
___
TIES
Web: http://ties.k12.mn.us/
qsteel
Posts: 31
Joined: Thu Oct 07, 2010 2:32 am

Re: NRPE: Unable to read out put

Post by qsteel »

Hey Tony,


Have attached the output for the command that you asked me to check on the Remote server.
Now how do i confirm it matches with the command definition

Please find the attachment



THanks & Regards
Jeff

P.S can we utilize a support ticket of ours so that this issue can be resolved at the earliest like taking remote access.
Because of the Time zone difference we end up sending one mail a day in the forum.. which is time consuming
You do not have the required permissions to view the files attached to this post.
tonyyarusso
Posts: 1128
Joined: Wed Mar 03, 2010 12:38 pm
Location: St. Paul, MN, USA
Contact:

Re: NRPE: Unable to read out put

Post by tonyyarusso »

Could you run this and post the output?

Code: Select all

/usr/local/nagios/libexec/check_nrpe -H 10.2.0.9 -c check_disk -a '-w 20% -c 10% -p /'
Tony Yarusso
Technical Services
___
TIES
Web: http://ties.k12.mn.us/
qsteel
Posts: 31
Joined: Thu Oct 07, 2010 2:32 am

Re: NRPE: Unable to read out put

Post by qsteel »

Please find the detail below


/usr/local/nagios/libexec/check_nrpe -H 10.2.0.9 -c check_disk -a '-w 20% -c 10% -p /'
CHECK_NRPE: Error - Could not complete SSL handshake.

Also attached screenshot

Regards
Jeff
You do not have the required permissions to view the files attached to this post.
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: NRPE: Unable to read out put

Post by mguthrie »

Is your remote machine a RHEL/CentOS based system? If so, did you try going through or doc for NRPE?
http://assets.nagios.com/downloads/nagi ... _Agent.pdf

Otherwise, we also have an Ubuntu based agent with an install script. This script and install doc should work out of the box.
http://exchange.nagios.org/directory/Ad ... nt/details

I would first try removing all nrpe installations that you have, and use our documentation to set up NRPE. You should be able to get the initial "out of the box" checks to run correctly. If it's still not working after following our documentation, we can look at doing a remote session.
qsteel
Posts: 31
Joined: Thu Oct 07, 2010 2:32 am

Re: NRPE: Unable to read out put

Post by qsteel »

Yes ours is Redhat.

Let me uninstall all NRPE agent and will try to install a fresh plug in as per doc.

But fyi i had done the same with reference to the doc itself during the first installation.



Regards
Jeff
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: NRPE: Unable to read out put

Post by mguthrie »

I understand. It will be the quickest and easiest for us to help you complete the setup if we know the exact method of installation and setup that you've used. The first screenshot that you sent had NRPE connectivity between the server and the client, which is where we want to be. From there it's simply a matter of adjusting the check commands between the server and the client. (Getting successful connectivity is the hard part in my opinion).
Locked