New NRPE error - error receiving data from daemon

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: New NRPE error - error receiving data from daemon

Post by lmiltchev »

Please, run the command again, and post the whole output:

Code: Select all

/usr/sbin/nrpe -V
Be sure to check out our Knowledgebase for helpful articles and solutions!
psyllex
Posts: 129
Joined: Thu Dec 20, 2012 2:18 pm

Re: New NRPE error - error receiving data from daemon

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

abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: New NRPE error - error receiving data from daemon

Post 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?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
psyllex
Posts: 129
Joined: Thu Dec 20, 2012 2:18 pm

Re: New NRPE error - error receiving data from daemon

Post 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.
You do not have the required permissions to view the files attached to this post.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: New NRPE error - error receiving data from daemon

Post 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'
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
psyllex
Posts: 129
Joined: Thu Dec 20, 2012 2:18 pm

Re: New NRPE error - error receiving data from daemon

Post 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
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: New NRPE error - error receiving data from daemon

Post by abrist »

Eureka, looks like it is working. Change your check in XI to match the check from the cli that worked. Report back.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
psyllex
Posts: 129
Joined: Thu Dec 20, 2012 2:18 pm

Re: New NRPE error - error receiving data from daemon

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

Re: New NRPE error - error receiving data from daemon

Post by slansing »

Great, This should do it for you, let us know if the other services clear fine as we are expecting them to.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: New NRPE error - error receiving data from daemon

Post by abrist »

Let us know when all is well and we will lock this large thread. Cheers.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Locked