Page 1 of 1

CHECK_NRPE: Received 0 bytes from daemon.

Posted: Fri Mar 23, 2018 7:38 am
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.

Re: CHECK_NRPE: Received 0 bytes from daemon.

Posted: Fri Mar 23, 2018 9:53 am
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!

Re: CHECK_NRPE: Received 0 bytes from daemon.

Posted: Tue Mar 27, 2018 1:21 am
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.

Re: CHECK_NRPE: Received 0 bytes from daemon.

Posted: Tue Mar 27, 2018 9:24 am
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?

Re: CHECK_NRPE: Received 0 bytes from daemon.

Posted: Tue Mar 27, 2018 9:24 am
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

Re: CHECK_NRPE: Received 0 bytes from daemon.

Posted: Thu Apr 26, 2018 4:57 am
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.

Re: CHECK_NRPE: Received 0 bytes from daemon.

Posted: Thu Apr 26, 2018 9:02 am
by scottwilkerson
Glad to hear it is resolved!

Locking