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.
CHECK_NRPE: Received 0 bytes from daemon.
CHECK_NRPE: Received 0 bytes from daemon.
Thanks & Regards,
I2MP Team.
I2MP Team.
Re: CHECK_NRPE: Received 0 bytes from daemon.
I would assume then that you reviewed our KB article on the topic, correct? (see below)We have ensured- dont_blame_nrpe=1 and we have passed all arguments properly.
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!
Re: CHECK_NRPE: Received 0 bytes from daemon.
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.
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.
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.
I see you running this on nagiosserver
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?
Code: Select all
/usr/local/nagios/libexec/check_nrpe -H localhost -c check_disk -a '-w 10% -c 15% -p /home'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?
-
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.
Can you confirm on remotehost that nrpe is listening on 5666scottwilkerson wrote:I see you running this on nagiosserverbut localhost isn't remotehost and that may be your problemCode: Select all
/usr/local/nagios/libexec/check_nrpe -H localhost -c check_disk -a '-w 10% -c 15% -p /home'
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?
Code: Select all
netstat -nl|grep 5666Re: CHECK_NRPE: Received 0 bytes from daemon.
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.
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.
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.
Glad to hear it is resolved!
Locking
Locking