Page 1 of 1

CHECK_NRPE: Received 0 bytes from daemon (NSclient)

Posted: Wed Jan 04, 2017 8:03 am
by dlukinski
Hello XI support

We are having troubles with remote NRPE (custom script) checks running for over 30 seconds
- "CHECK_NRPE: Received 0 bytes from daemon. Check the remote server logs for error messages."

XI side nrpe configured for 180 sec timeout and dont_blame_nrpe=1

php.ini & nagios timeouts set for 300 sec

when calling for external CMD file from nsclient.ini (runs some other things), same script return OK if running below 30 sec or error if running over

Attached nsclient.ini (zipped) and custom CMD (which calls on another java script / essentially SELENIUM3 scenario, which has to work for 2-3 minutes)

Re: CHECK_NRPE: Received 0 bytes from daemon (NSclient)

Posted: Wed Jan 04, 2017 12:58 pm
by rkennedy
It looks like it may be timing out at an NSClient++ level, not Nagios. You'll want to adjust this timeout from 90 to say, 300 -

Code: Select all

[/settings/external scripts]
allow arguments = 1
allow nasty characters = 1
timeout = 90
Then, under this section [/settings/NRPE/server] - add the following -

Code: Select all

timeout = 300
Now restart the nscp service, and that should give it a longer amount of time.

Re: CHECK_NRPE: Received 0 bytes from daemon (NSclient)

Posted: Wed Jan 04, 2017 6:56 pm
by dlukinski
rkennedy wrote:It looks like it may be timing out at an NSClient++ level, not Nagios. You'll want to adjust this timeout from 90 to say, 300 -

Code: Select all

[/settings/external scripts]
allow arguments = 1
allow nasty characters = 1
timeout = 90
Then, under this section [/settings/NRPE/server] - add the following -

Code: Select all

timeout = 300
Now restart the nscp service, and that should give it a longer amount of time.
This worked.
Thank you, please close this thread