CHECK_NRPE: Received 0 bytes from daemon. Check the remote s

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
caterpillartce
Posts: 117
Joined: Mon Jul 11, 2016 11:22 am

CHECK_NRPE: Received 0 bytes from daemon. Check the remote s

Post by caterpillartce »

Hello,

I have one service started returning error from one windows server: CHECK_NRPE: Received 0 bytes from daemon. Check the remote server logs for error messages.

However other check_nrpe services seem to be working fine on the same windows server; The same service seems to be working fine on other Windows servers being monitored.

There does not seem to be much information in nsclient.log file:

2017-10-23 13:29:52: error:c:\source\nscp\include\socket/connection.hpp:149: Failed to send data: The file handle supplied is not valid

I'd appreciate your help!

Thanks!
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. Check the remo

Post by scottwilkerson »

caterpillartce wrote:However other check_nrpe services seem to be working fine on the same windows server; The same service seems to be working fine on other Windows servers being monitored.
Could you share the nrpe command that is being run, as well as the nsclient.ini (obfuscate and sensitive data).

Also, could you verify the version of NSClient on this server as opposed to one that is working.

Thanks!
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
dwasswa

Re: CHECK_NRPE: Received 0 bytes from daemon. Check the remo

Post by dwasswa »

Hi @ caterpillartce,

What service seems to be getting the error?

Can you please check nagios configurations by running the command below and post the output:

Code: Select all

/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
Also post the output for:

Code: Select all

cat /usr/local/nagios/var/objects.cache
This directive is used to specify a file in which a cached copy of object definitions should be stored. The cache file is (re)created every time Nagios is (re)started and is used by the CGIs. It is intended to speed up config file caching in the CGIs and allow you to edit the source object config files while Nagios is running without affecting the output displayed in the CGIs.

Also please post how you are defining your check command for that service:
Example:

Code: Select all

check_nrpe -H 10.xx.xx.xx -t 30 -c check_users -a '-w 5 -c 10'
caterpillartce
Posts: 117
Joined: Mon Jul 11, 2016 11:22 am

Re: CHECK_NRPE: Received 0 bytes from daemon. Check the remo

Post by caterpillartce »

1. the nsclient version is the same as other servers being monitored: NSCP-0.4.4.19-x64
2. the check_NRPE service that is failing is a 3rd party tool. The service name in our Nagios is called " client_performance" and its definition is in the attached.
It worked up until last week on this same server. It could be an environmental issue on the host being monitored, but I am not sure how to pin point it.
3. see attached nsclient.ini. the failing check_nrpe for the 3rd party tool is in the "/settings/external scripts/scripts" section
4. I already removed and reinstalled the 3rd party tool, though this may not completely rule out the tool itself being the faulty part. Truth is this tool is widely used in our environment and rarely has an issue and I never had to do more than reinstall to fix it.
5. see attached for the output of check nagios config. There was no serious problem. I could not copy and paste the output of objects.cache as there are too many lines and I am not sure how to redirect the output to a file on Linux. BUT I already removed this host from the group that has the "client_performnace" service applied as it is causing problem to some testing we are conducting, so I am not sure if the cache output is still useful.

Thanks for your help!
You do not have the required permissions to view the files attached to this post.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: CHECK_NRPE: Received 0 bytes from daemon. Check the remo

Post by tgriep »

I just want to verify that the check used to work and then it stopped and no changes were done, correct?
Can you login to that Windows system and run the batch file manually?
Can you post the output of that so we can see it?
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked