CHECK_NRPE: Received 0 bytes from daemon (NSclient)

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
dlukinski
Posts: 1130
Joined: Tue Oct 06, 2015 9:42 am

CHECK_NRPE: Received 0 bytes from daemon (NSclient)

Post 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)
You do not have the required permissions to view the files attached to this post.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

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

Post 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.
Former Nagios Employee
dlukinski
Posts: 1130
Joined: Tue Oct 06, 2015 9:42 am

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

Post 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
Locked