"CHECK_NRPE: Received 0 bytes from daemon" error message
"CHECK_NRPE: Received 0 bytes from daemon" error message
Hi Team,
I am trying to monitor an AIX server using Nagios.
Have successfully installed NRPE on the remote host. But unable to monitor the parameters receiving below mentioned message:
"CHECK_NRPE: Received 0 bytes from daemon. Check the remote server logs for error messages."
NRPE is running on remote host:
NON-PROD> nagios@remotehost: /var/log > ps -ef | grep nrpe
nagios 17956970 1 0 Jun 07 - 0:22 /usr/local/nagios/bin/nrpe -c /usr/local/nagios/etc/nrpe.cfg -d
NRPE check from Nagios XI server is also running fine
[nagios@nagiosserver libexec]$ ./check_nrpe -H <remotehostIP>-p 5666
NRPE v2.12
'check_disk' script is running fine on remote host
NON-PROD> nagios@remotehost: /usr/local/nagios/libexec > ./check_disk -w 10% -c 15% -p '/home'
DISK OK - free space: /home 61 MB (96% inode=99%);| /home=2MB;57;54;0;64
From Nagios XI the check is resulting error
[nagios@nagiosserver libexec]$ ./check_nrpe -H <remotehostip> -t 30 -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.
We have mentioned don't_blame_nrpe=1 in the nrpe.cfg file on remote host.
Kindly suggest, why are we receiving the above error.
I am trying to monitor an AIX server using Nagios.
Have successfully installed NRPE on the remote host. But unable to monitor the parameters receiving below mentioned message:
"CHECK_NRPE: Received 0 bytes from daemon. Check the remote server logs for error messages."
NRPE is running on remote host:
NON-PROD> nagios@remotehost: /var/log > ps -ef | grep nrpe
nagios 17956970 1 0 Jun 07 - 0:22 /usr/local/nagios/bin/nrpe -c /usr/local/nagios/etc/nrpe.cfg -d
NRPE check from Nagios XI server is also running fine
[nagios@nagiosserver libexec]$ ./check_nrpe -H <remotehostIP>-p 5666
NRPE v2.12
'check_disk' script is running fine on remote host
NON-PROD> nagios@remotehost: /usr/local/nagios/libexec > ./check_disk -w 10% -c 15% -p '/home'
DISK OK - free space: /home 61 MB (96% inode=99%);| /home=2MB;57;54;0;64
From Nagios XI the check is resulting error
[nagios@nagiosserver libexec]$ ./check_nrpe -H <remotehostip> -t 30 -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.
We have mentioned don't_blame_nrpe=1 in the nrpe.cfg file on remote host.
Kindly suggest, why are we receiving the above error.
Thanks & Regards,
I2MP Team.
I2MP Team.
Re: "CHECK_NRPE: Received 0 bytes from daemon" error message
Did you restart nrpe on the remote box after setting: "don't_blame_nrpe=1"?
Can you show us how "check_disk" is configured on the client?
Can you pass arguments to check_nrpe, when running it locally (on the remote box)?
Example:
Can you show us how "check_disk" is configured on the client?
Can you pass arguments to check_nrpe, when running it locally (on the remote box)?
Example:
Code: Select all
/usr/local/nagios/libexec/check_nrpe -H localhost -c check_disk -a '-w 10% -c 15% -p /home'Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: "CHECK_NRPE: Received 0 bytes from daemon" error message
Hi Team,
I have restarted the NRPE service after updating the nrp.cfg file with 'don't_blame_nrpe=1'
"check_disk" configuration in the nrpe.cfg file on remote host:
I commented the hardcoded "check_disk" command in the nrpe file and tried executing below mentioned command from Nagios Xi server but receiving same output(didn't succeeded):
[nagios@nagiosserver libexec]$ ./check_nrpe -H <remotehostIp>-t 30 -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.
I have tried executing the below command by passing the arguments on the remote host, receiving below output:
NON-PROD> nagios@remotehost: /usr/local/nagios/libexec > ./check_nrpe -H <remotehostIp>-t 30 -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.
I have restarted the NRPE service after updating the nrp.cfg file with 'don't_blame_nrpe=1'
"check_disk" configuration in the nrpe.cfg file on remote host:
I commented the hardcoded "check_disk" command in the nrpe file and tried executing below mentioned command from Nagios Xi server but receiving same output(didn't succeeded):
[nagios@nagiosserver libexec]$ ./check_nrpe -H <remotehostIp>-t 30 -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.
I have tried executing the below command by passing the arguments on the remote host, receiving below output:
NON-PROD> nagios@remotehost: /usr/local/nagios/libexec > ./check_nrpe -H <remotehostIp>-t 30 -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.
You do not have the required permissions to view the files attached to this post.
Thanks & Regards,
I2MP Team.
I2MP Team.
Re: "CHECK_NRPE: Received 0 bytes from daemon" error message
Do you have "check_disk" configured in some other file, i.e. common.cfg? The command on the screenshot is commented out. It shouldn't be working at all... If you are passing this:
as one argument, then your "check_disk" command on the client should look like this:
Code: Select all
'-w 10% -c 15% -p /home'Code: Select all
command[check_disk]=/usr/local/nagios/libexec/check_disk $ARG1$Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: "CHECK_NRPE: Received 0 bytes from daemon" error message
I am not able to find "check_disk" entry on remote host (i.e. unable to find command.cfg on remote host)
yet the command is working locally on the remote host but not from Nagios server.
Kindly suggest.
yet the command is working locally on the remote host but not from Nagios server.
Kindly suggest.
Thanks & Regards,
I2MP Team.
I2MP Team.
Re: "CHECK_NRPE: Received 0 bytes from daemon" error message
It's possible that check_disk is defined in common.cfg, NOT command.cfg on the remote host. A typical location would be: "/usr/local/nagios/etc/nrpe/common.cfg".
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: "CHECK_NRPE: Received 0 bytes from daemon" error message
Hi Team,
There is no folder named nrpe and file named common.cfg on remote host at /usr/local/nagios/etc/
Kindly let me know the reason why I am not able to execute the commands to check disk utilization from Nagios server, whereas check is successful locally on remote host.
There is no folder named nrpe and file named common.cfg on remote host at /usr/local/nagios/etc/
Kindly let me know the reason why I am not able to execute the commands to check disk utilization from Nagios server, whereas check is successful locally on remote host.
Thanks & Regards,
I2MP Team.
I2MP Team.
Re: "CHECK_NRPE: Received 0 bytes from daemon" error message
Try the following - open the nrpe.cfg on the client machine in a text editor and check this line:
to this:
Save and exit. Kill the NRPE process, and start the agent:
Test it by running the following command on the Nagios XI server:
Code: Select all
#command[check_disk]=/usr/local/nagios/libexec/check_disk -w $ARG1$ -c $ARG2$ -p $ARG3$Code: Select all
command[check_disk]=/usr/local/nagios/libexec/check_disk $ARG1$Code: Select all
killall nrpe
/usr/local/nagios/bin/nrpe -c /usr/local/nagios/etc/nrpe.cfg -d
Code: Select all
/usr/local/nagios/libexec/check_nrpe -H <remotehostIp> -t 30 -c check_disk -a '-w 10% -c 15% -p /home'Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: "CHECK_NRPE: Received 0 bytes from daemon" error message
Hi Team,
Kindly refer the attached snapshot of a part of nrpe.cfg file. 1. File consists two lines for 'check_disk' command, one is with arguments ARG1, ARG2 and ARG3 but line is commented so has no significance other line for check_disk command consists of only one argument variable I.e. ARG1 which has significant.
2. I have killed the nrpe the service and restarted it but still no luck, unable to monitor from Nagios XI.
Kindly suggest.
Kindly refer the attached snapshot of a part of nrpe.cfg file. 1. File consists two lines for 'check_disk' command, one is with arguments ARG1, ARG2 and ARG3 but line is commented so has no significance other line for check_disk command consists of only one argument variable I.e. ARG1 which has significant.
2. I have killed the nrpe the service and restarted it but still no luck, unable to monitor from Nagios XI.
Kindly suggest.
You do not have the required permissions to view the files attached to this post.
Thanks & Regards,
I2MP Team.
I2MP Team.
Re: "CHECK_NRPE: Received 0 bytes from daemon" error message
Can you login to the remove server, run the following as root and post the output?
Another reason for this to fail is if the NRPE Agent was compiled without arguments enabled, that would make the check fail as arguments are not compiled in to the binary.
I suggest installing the newest NRPE agent on that system and see if that works better that the one you are running.
https://support.nagios.com/kb/article/n ... ource.html
Code: Select all
grep -e ^dont /usr/local/nagios/etc/nrpe.cfgI suggest installing the newest NRPE agent on that system and see if that works better that the one you are running.
https://support.nagios.com/kb/article/n ... ource.html
Be sure to check out our Knowledgebase for helpful articles and solutions!