Page 5 of 6

Re: New NRPE error - error receiving data from daemon

Posted: Mon Mar 04, 2013 3:38 pm
by lmiltchev
Please, run the command again, and post the whole output:

Code: Select all

/usr/sbin/nrpe -V

Re: New NRPE error - error receiving data from daemon

Posted: Tue Mar 05, 2013 12:37 pm
by psyllex
lmiltchev wrote:Please, run the command again, and post the whole output:

Code: Select all

/usr/sbin/nrpe -V

Here it is:

Code: Select all

NRPE - Nagios Remote Plugin Executor
Copyright (c) 1999-2008 Ethan Galstad ([email protected])
Version: 2.12
Last Modified: 03-10-2008
License: GPL v2 with exemptions (-l for more info)
SSL/TLS Available: Anonymous DH Mode, OpenSSL 0.9.6 or higher required
TCP Wrappers Available

***************************************************************
** POSSIBLE SECURITY RISK - COMMAND ARGUMENTS ARE SUPPORTED! **
**      Read the NRPE SECURITY file for more information     **
***************************************************************

Usage: nrpe [-n] -c <config_file> <mode>

Options:
 -n,--no-ssl   = Do not use SSL
 <config_file> = Name of config file to use
 <mode>        = One of the following two operating modes:
   -i,--inetd    Run as a service under inetd or xinetd
   -d,--daemon   Run as a standalone daemon
   -h,--help     Print this short help.
   -l,--license  Print licensing information.

Notes:
This program is designed to process requests from the check_nrpe
plugin on the host(s) running Nagios.  It can run as a service
under inetd or xinetd (read the docs for info on this), or as a
standalone daemon. Once a request is received from an authorized
host, NRPE will execute the command/plugin (as defined in the
config file) and return the plugin output and return code to the
check_nrpe plugin.

You have new mail in /var/mail/root
root@tribbleNet1-3:/etc/nagios# /usr/sbin/nrpe -V

NRPE - Nagios Remote Plugin Executor
Copyright (c) 1999-2008 Ethan Galstad ([email protected])
Version: 2.12
Last Modified: 03-10-2008
License: GPL v2 with exemptions (-l for more info)
SSL/TLS Available: Anonymous DH Mode, OpenSSL 0.9.6 or higher required
TCP Wrappers Available

***************************************************************
** POSSIBLE SECURITY RISK - COMMAND ARGUMENTS ARE SUPPORTED! **
**      Read the NRPE SECURITY file for more information     **
***************************************************************

Usage: nrpe [-n] -c <config_file> <mode>

Options:
 -n,--no-ssl   = Do not use SSL
 <config_file> = Name of config file to use
 <mode>        = One of the following two operating modes:
   -i,--inetd    Run as a service under inetd or xinetd
   -d,--daemon   Run as a standalone daemon
   -h,--help     Print this short help.
   -l,--license  Print licensing information.

Notes:
This program is designed to process requests from the check_nrpe
plugin on the host(s) running Nagios.  It can run as a service
under inetd or xinetd (read the docs for info on this), or as a
standalone daemon. Once a request is received from an authorized
host, NRPE will execute the command/plugin (as defined in the
config file) and return the plugin output and return code to the
check_nrpe plugin.


Re: New NRPE error - error receiving data from daemon

Posted: Tue Mar 05, 2013 3:19 pm
by abrist
On the remote host, check for ssl:

Code: Select all

which openssl
You should see something like:

Code: Select all

/usr/bin/openssl
This means the remote host has ssl enabled.

As we have never seen the configs after a number of suggested edits, could you post:
1. The remote host's nrpe.cfg
2. A transcription of you check in XI, a screenshot, or the text file you download when you click the disk icon next to the service check in the CCM under services?

Re: New NRPE error - error receiving data from daemon

Posted: Tue Mar 05, 2013 4:09 pm
by psyllex
I saw what was expected. Here is my services from the CCM and the nrpe.cfg Both are attached. Thanks for the help.

Re: New NRPE error - error receiving data from daemon

Posted: Tue Mar 05, 2013 4:18 pm
by scottwilkerson
remove the -n from $ARG2$ for each of the services

Apply Configuration

Just for testing lest run this from the commandline on the XI server and return both results

Code: Select all

/usr/local/nagios/libexec/check_nrpe -H 10.10.0.102
/usr/local/nagios/libexec/check_nrpe -H 10.10.0.102 -t 30 -c check_users -a '-w 5 -c 10'

Re: New NRPE error - error receiving data from daemon

Posted: Tue Mar 05, 2013 4:25 pm
by psyllex
scottwilkerson wrote:remove the -n from $ARG2$ for each of the services

Apply Configuration

Just for testing lest run this from the commandline on the XI server and return both results

Code: Select all

/usr/local/nagios/libexec/check_nrpe -H 10.10.0.102
/usr/local/nagios/libexec/check_nrpe -H 10.10.0.102 -t 30 -c check_users -a '-w 5 -c 10'

First result: NRPE v2.12
Second result: USERS OK - 3 users currently logged in !users=3;5;10;0

Re: New NRPE error - error receiving data from daemon

Posted: Tue Mar 05, 2013 4:35 pm
by abrist
Eureka, looks like it is working. Change your check in XI to match the check from the cli that worked. Report back.

Re: New NRPE error - error receiving data from daemon

Posted: Tue Mar 05, 2013 5:20 pm
by psyllex
abrist wrote:Eureka, looks like it is working. Change your check in XI to match the check from the cli that worked. Report back.
Yeah it looks like that might have done it. I'm waiting till all my services run through their checks to make sure. Awesome thanks people.

Re: New NRPE error - error receiving data from daemon

Posted: Tue Mar 05, 2013 5:22 pm
by slansing
Great, This should do it for you, let us know if the other services clear fine as we are expecting them to.

Re: New NRPE error - error receiving data from daemon

Posted: Tue Mar 05, 2013 5:23 pm
by abrist
Let us know when all is well and we will lock this large thread. Cheers.