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.
NRPE Timeouts won't increase?
Re: NRPE Timeouts won't increase?
Was this added to the actual command on the commands page of XI or to the service check itself?intelXIadmin wrote: In the check_nrpe command I also added -t 300. It still times out after 60 seconds.
Could you post your nsc.ini in code wraps? (obfuscate sensitive bits like your password)intelXIadmin wrote:in the nsc.ini file command_timeout=500
/usr/local/nagios/etc/nrpe.cfg command_timeout=500
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
-
intelXIadmin
- Posts: 65
- Joined: Mon Mar 25, 2013 9:10 am
Re: NRPE Timeouts won't increase?
You can close this out. We no longer need it.
Regards,
Randy.
Regards,
Randy.
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: NRPE Timeouts won't increase?
Unlocked per request.
-
intelXIadmin
- Posts: 65
- Joined: Mon Mar 25, 2013 9:10 am
Re: NRPE Timeouts won't increase?
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.
Non of the suggestions have worked so far. The timeout is still staying at 60 seconds.
Any help would be greatly appreciated.
Regards,
Randy.
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: NRPE Timeouts won't increase?
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?
-
intelXIadmin
- Posts: 65
- Joined: Mon Mar 25, 2013 9:10 am
Re: NRPE Timeouts won't increase?
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.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?
Regards,
Randy.
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: NRPE Timeouts won't increase?
in /usr/local/nagios/etc/nagios.cfg what is the service_check_timeout set to?
This likely needs to increase and then nagios restarted
This likely needs to increase and then nagios restarted