Page 2 of 2
Re: NRPE: Unable to read out put
Posted: Tue Feb 22, 2011 2:38 pm
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.
Re: NRPE: Unable to read out put
Posted: Wed Feb 23, 2011 3:27 am
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
Re: NRPE: Unable to read out put
Posted: Wed Feb 23, 2011 11:02 am
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 /'
Re: NRPE: Unable to read out put
Posted: Thu Feb 24, 2011 1:00 am
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
Re: NRPE: Unable to read out put
Posted: Thu Feb 24, 2011 11:04 am
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.
Re: NRPE: Unable to read out put
Posted: Mon Feb 28, 2011 3:31 am
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
Re: NRPE: Unable to read out put
Posted: Mon Feb 28, 2011 10:24 am
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).