Page 1 of 1

openmanage issue:CHECK_NRPE: Received 0 bytes from daemon

Posted: Tue Jul 16, 2019 12:48 am
by simbu991
Hi Team,

we are monitoring the dell hardware status via check_manage plugin on some of the physical servers.

we could see some of the servers ,facing the issue while monitoring dell hardware plugin for certain time and received below alert.

Code: Select all

[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

Code: Select all

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.

Regards,
Simbu

Re: openmanage issue:CHECK_NRPE: Received 0 bytes from daemo

Posted: Tue Jul 16, 2019 4:25 pm
by benjaminsmith
Hi Simbu,

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?

For example,

Code: Select all

[settings/NPRE/server]
timeout = 70
It would be helpful if you could upload the nsclient.ini and nsclient.log file for us to review? Thanks.

Re: openmanage issue:CHECK_NRPE: Received 0 bytes from daemo

Posted: Wed Jul 17, 2019 2:49 am
by simbu991
Hi benjaminsmith,

Thanks for the clarity. I am using Nsclient++ 0.52 version. please find the attached ini file for review.

Regards,
Simbu S

Re: openmanage issue:CHECK_NRPE: Received 0 bytes from daemo

Posted: Thu Jul 18, 2019 2:18 pm
by tgriep
Couple of things to try.
Edit the nsclient.ini file and change this option from

Code: Select all

extended response = false
to

Code: Select all

extended response = true
in case the plugin's output is large, this should allow the nrpe plugin to read it all.

Your check_openmanage command is hard coded to not accept arguments so change this from

Code: Select all

check_openmanage = scripts/check_openmanage.exe
to

Code: Select all

check_openmanage = scripts/check_openmanage.exe $ARG1$
Change this in the default section from

Code: Select all

timeout = 30
to

Code: Select all

timeout = 60

Save the changes and restart NSCLient++

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.

Code: Select all

./check_nrpe -H xxxxxxxx -c check_openmanage -a '-t 60'

Re: openmanage issue:CHECK_NRPE: Received 0 bytes from daemo

Posted: Sat Jul 20, 2019 1:45 am
by simbu991
Hi tgriep,

Thank you for the reply.

I have modified the respective parameters as suggested, but still am getting time out error.

Code: Select all

[root@INFSGDCNGOS03 libexec]# ./check_nrpe -H 10.180.12.85 -c check_openmanage -a -t 60
CHECK_NRPE: Socket timeout after 10 seconds.
Please advise.

Regards,
Simbu

Re: openmanage issue:CHECK_NRPE: Received 0 bytes from daemo

Posted: Mon Jul 22, 2019 9:25 am
by tgriep
When specifying an argument with the check_nrpe plugin, you need to wrap them in single quotes like this.

Code: Select all

./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?

http://folk.uio.no/trondham/software/ch ... anage.html

Re: openmanage issue:CHECK_NRPE: Received 0 bytes from daemo

Posted: Tue Jul 23, 2019 3:28 am
by simbu991
Hi Tgrief,

I have tried with quotes and getting the same error.

Code: Select all

[root@INFSGDCNGOS03 libexec]# ./check_nrpe -H xxxxx -c check_openmanage -a '-t 60'
CHECK_NRPE: Socket timeout after 10 seconds.
please find the output of nsclient.log file from client end.

Code: Select all

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)
Regards,
Simbu

Re: openmanage issue:CHECK_NRPE: Received 0 bytes from daemo

Posted: Tue Jul 23, 2019 8:15 am
by tgriep
Can you run the check_openmanage.exe executable on the remote server to see if it runs?
If it does run, how long does it take to run in seconds?