CHECK_NRPE: Received 0 bytes from daemon.

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
RIDS_I2MP
Posts: 751
Joined: Thu Mar 13, 2014 9:25 am

CHECK_NRPE: Received 0 bytes from daemon.

Post by RIDS_I2MP »

Hello Everyone,

We are facing below issue in our unix servers-

"CHECK_NRPE: Received 0 bytes from daemon. Check the remote server logs for error messages."

We have ensured- dont_blame_nrpe=1 and we have passed all arguments properly.

Kindly provide some solution to resolve this error.
Thanks & Regards,
I2MP Team.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: CHECK_NRPE: Received 0 bytes from daemon.

Post by lmiltchev »

We have ensured- dont_blame_nrpe=1 and we have passed all arguments properly.
I would assume then that you reviewed our KB article on the topic, correct? (see below)

https://support.nagios.com/kb/article/n ... s-618.html

Can you show us the command definition, the nrpe.cfg and common.cfg (if present), and the system log from the remote server?

Show us the command run from the command line locally (on the remote box) AND on the Nagios XI server, along with the output of it. What is the version of NRPE that you are using on the server and on the client?

Thank you!
Be sure to check out our Knowledgebase for helpful articles and solutions!
RIDS_I2MP
Posts: 751
Joined: Thu Mar 13, 2014 9:25 am

Re: CHECK_NRPE: Received 0 bytes from daemon.

Post by RIDS_I2MP »

Hello,

PFB outputs of some commands-

PRODUCTION> nagios@remotehost: /usr/local/nagios/libexec > ./check_nrpe -H localhost -p 5666
CHECK_NRPE: Received 0 bytes from daemon. Check the remote server logs for error messages.

[nagios@nagiosserver libexec]$ /usr/local/nagios/libexec/check_nrpe -H localhost -c check_disk -a '-w 10% -c 15% -p /home'
CHECK_NRPE: Received 0 bytes from daemon. Check the remote server logs for error messages.

PRODUCTION> nagios@remotehost: /usr/local/nagios/libexec > ./check_disk -w 10% -c 15% -p '/home'
DISK OK - free space: /home 913 MB (83% inode=99%);| /home=174MB;979;924;0;1088

We have mentioned don't_blame_nrpe=1 in the nrpe.cfg file on remote host.
Also, there is no folder named nrpe and file named common.cfg on remote host


PRODUCTION> nagios@remotehost: /usr/local/nagios/etc > grep -e ^dont /usr/local/nagios/etc/nrpe.cfg
dont_blame_nrpe=1

Kindly suggest a way to resolve this error.
You do not have the required permissions to view the files attached to this post.
Thanks & Regards,
I2MP Team.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: CHECK_NRPE: Received 0 bytes from daemon.

Post by scottwilkerson »

I see you running this on nagiosserver

Code: Select all

 /usr/local/nagios/libexec/check_nrpe -H localhost -c check_disk -a '-w 10% -c 15% -p /home'
but localhost isn't remotehost and that may be your problem

How was NRPE installed on remotehost? Did you allow access to nagiosserver in the allowed_hosts in nrpe.cfg or /etx/xinetd.d/nrpe if using xinetd?
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: CHECK_NRPE: Received 0 bytes from daemon.

Post by scottwilkerson »

scottwilkerson wrote:I see you running this on nagiosserver

Code: Select all

 /usr/local/nagios/libexec/check_nrpe -H localhost -c check_disk -a '-w 10% -c 15% -p /home'
but localhost isn't remotehost and that may be your problem

How was NRPE installed on remotehost? Did you allow access to nagiosserver in the allowed_hosts in nrpe.cfg or /etx/xinetd.d/nrpe if using xinetd?
Can you confirm on remotehost that nrpe is listening on 5666

Code: Select all

netstat -nl|grep 5666
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
RIDS_I2MP
Posts: 751
Joined: Thu Mar 13, 2014 9:25 am

Re: CHECK_NRPE: Received 0 bytes from daemon.

Post by RIDS_I2MP »

Hello,

Issue is resolved now. We were using old nrpe file. Replacing the old one with new one resolved this issue.
Thankyou for the support.
Thanks & Regards,
I2MP Team.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: CHECK_NRPE: Received 0 bytes from daemon.

Post by scottwilkerson »

Glad to hear it is resolved!

Locking
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked