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!
CHECK_NRPE: Received 0 bytes from daemon. Check the remote s
-
caterpillartce
- Posts: 117
- Joined: Mon Jul 11, 2016 11:22 am
-
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
Could you share the nrpe command that is being run, as well as the nsclient.ini (obfuscate and sensitive data).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.
Also, could you verify the version of NSClient on this server as opposed to one that is working.
Thanks!
-
dwasswa
Re: CHECK_NRPE: Received 0 bytes from daemon. Check the remo
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:
Also post the output for:
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:
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.cfgCode: Select all
cat /usr/local/nagios/var/objects.cacheAlso 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
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!
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.
Re: CHECK_NRPE: Received 0 bytes from daemon. Check the remo
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?
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!