NRPE Timeouts won't increase?

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
intelXIadmin
Posts: 65
Joined: Mon Mar 25, 2013 9:10 am

NRPE Timeouts won't increase?

Post 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.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: NRPE Timeouts won't increase?

Post 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)
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.
intelXIadmin
Posts: 65
Joined: Mon Mar 25, 2013 9:10 am

Re: NRPE Timeouts won't increase?

Post by intelXIadmin »

You can close this out. We no longer need it.

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?

Post by slansing »

Unlocked per request.
intelXIadmin
Posts: 65
Joined: Mon Mar 25, 2013 9:10 am

Re: NRPE Timeouts won't increase?

Post 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.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: NRPE Timeouts won't increase?

Post 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?
intelXIadmin
Posts: 65
Joined: Mon Mar 25, 2013 9:10 am

Re: NRPE Timeouts won't increase?

Post 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.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: NRPE Timeouts won't increase?

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked