Page 1 of 1
NRPE Timeouts won't increase?
Posted: Wed May 15, 2013 11:02 am
by intelXIadmin
Hello,
I have a script that deletes files on workstations that hit a certain limit 10% free space. The script gets run through an event handler. However, since it can take up to 7 minutes to do the file deletions, NRPE times out after 60 seconds. I changed the following:
in the nsc.ini file command_timeout=500
/usr/local/nagios/etc/nrpe.cfg command_timeout=500
In the check_nrpe command I also added -t 300. It still times out after 60 seconds. I also rebooted the server and restarted the service on the client. Any idea's of another setting somewhere?
Regards,
Randy.
Re: NRPE Timeouts won't increase?
Posted: Wed May 15, 2013 11:45 am
by abrist
intelXIadmin wrote:
In the check_nrpe command I also added -t 300. It still times out after 60 seconds.
Was this added to the actual command on the commands page of XI or to the service check itself?
intelXIadmin wrote:in the nsc.ini file command_timeout=500
/usr/local/nagios/etc/nrpe.cfg command_timeout=500
Could you post your nsc.ini in code wraps? (obfuscate sensitive bits like your password)
Re: NRPE Timeouts won't increase?
Posted: Tue May 21, 2013 2:12 pm
by intelXIadmin
You can close this out. We no longer need it.
Regards,
Randy.
Re: NRPE Timeouts won't increase?
Posted: Tue May 21, 2013 2:45 pm
by slansing
Unlocked per request.
Re: NRPE Timeouts won't increase?
Posted: Mon Jun 03, 2013 10:53 am
by intelXIadmin
Hello,
Non of the suggestions have worked so far. The timeout is still staying at 60 seconds.
Any help would be greatly appreciated.
Regards,
Randy.
Re: NRPE Timeouts won't increase?
Posted: Mon Jun 03, 2013 11:04 am
by slansing
Just verifying, but you did restart NSClient++, and / or NRPE on the server's side correct? So when you run a straight command, "whatever it may be" from the Nagios server's CLI to the remote host, and that command takes longer than 10 seconds, it still shows that it timed out after 10 seconds?
Re: NRPE Timeouts won't increase?
Posted: Mon Jun 03, 2013 3:28 pm
by intelXIadmin
slansing wrote:Just verifying, but you did restart NSClient++, and / or NRPE on the server's side correct? So when you run a straight command, "whatever it may be" from the Nagios server's CLI to the remote host, and that command takes longer than 10 seconds, it still shows that it timed out after 10 seconds?
Yes, I did restart the NSClient++ service. I also restarted the server after the changes on the server side. The command takes 60 seconds before it times out. It is a disk space cleaning command on a windows server using powershell.
Regards,
Randy.
Re: NRPE Timeouts won't increase?
Posted: Mon Jun 03, 2013 4:07 pm
by scottwilkerson
in /usr/local/nagios/etc/nagios.cfg what is the service_check_timeout set to?
This likely needs to increase and then nagios restarted