Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
[root@xxxx libexec]# ./check_nrpe -H xxxxxxxx -c check_openmanage -t 120
CHECK_NRPE: Received 0 bytes from daemon. Check the remote server logs for error messages.
while checking the nsclient logs from the server end , the following error reported
2019-07-16 13:29:28: error:c:\source\master\include\socket/connection.hpp:139: Socket was unexpectedly closed trying to send data (possibly check your timeout settings)
I have tried to change the timeout settings .ini file as well and it's couldn't help . could you please assist to resolve the issue.
Probably a network issue as some of your servers are working and some are not. What version of NSClient++ are you using and what are the timeout settings in the nsclient.ini file?
To pass arguments using the check_nrpe plugin, you need to add the -a option and the data to send to the agent so run this example command on the nagios server.
./check_nrpe -H 10.180.12.85 -c check_openmanage -a '-t 60'
Do you see any errors in the C:\Program Files\NSClient++\nsclient.log file when the check is ran?
Can you run the check_openmanage.exe executable on the remote server without any errors?
2019-07-23 16:15:55: error:c:\source\master\include\socket/connection.hpp:139: Socket was unexpectedly closed trying to send data (possibly check your timeout settings)
2019-07-23 16:17:54: error:c:\source\master\include\socket/connection.hpp:139: Socket was unexpectedly closed trying to send data (possibly check your timeout settings)