CHECK_NRPE: Received 0 Bytes From Daemon

CHECK_NRPE: Received 0 Bytes From Daemon error pops up during Linux server configuration in Nagios XI using a NRPE agent.

With several issues that I faced last week in setting up NRPE agent in linux so that I can Monitor linux server, one more issue that I found was, CHECK_NRPE: Received 0 Bytes From Daemon message that pops up in Nagios XI console.

Solution

1. Make sure that NRPE services are started properly before further troubleshooting.

2. Make sure that the values in nrpe.cfg file are properly declared and are allowing Nagios IP for performing the request.

3. Log into Linux server where NRPE is available and check below command,

cat /usr/local/nagios/etc/nrpe.cfg | grep blame

4. Output for above command should be,

dont_blame_nrpe=1

5. Without this directive set to a value of “1”, arguments will not be accepted for any checks other than those specified in the nrpe.cfg file itself. If the “dont_blame_nrpe” directive is set to “0”, you will need to edit /usr/local/nagios/etc/nrpe.cfg and set dont_blame_nrpe=1.

6. Make sure that the arguments that you are checking are done through command prompt first and then through Nagios XI console.

If you are checking for memory, use check_mem command first without any check_nrpe command. If you checking for users who are logged in on Linux, you first check the users command separately and then use check_nrpe. Nagios Link for reference.