openmanage issue:CHECK_NRPE: Received 0 bytes from daemon

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.
Locked
simbu991
Posts: 4
Joined: Mon Jul 15, 2019 10:43 am

openmanage issue:CHECK_NRPE: Received 0 bytes from daemon

Post 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
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

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

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
simbu991
Posts: 4
Joined: Mon Jul 15, 2019 10:43 am

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

Post 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
Attachments
nsclient.ini
Nsclient config
(12.33 KiB) Downloaded 185 times
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

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

Post 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'
Be sure to check out our Knowledgebase for helpful articles and solutions!
simbu991
Posts: 4
Joined: Mon Jul 15, 2019 10:43 am

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

Post 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
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

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

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
simbu991
Posts: 4
Joined: Mon Jul 15, 2019 10:43 am

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

Post 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
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

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

Post 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?
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked