Nagios ignores -T (--timeout) parameter while running script

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Nagios ignores -T (--timeout) parameter while running sc

Post by scottwilkerson »

there is a setting in the nagios.cfg that is the longest nagios will allow a command to run

for services it is

Code: Select all

service_check_timeout=60
If you adjust this higher and restart nagios it will allow execution to go longer for service checks
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Nagios ignores -T (--timeout) parameter while running sc

Post by scottwilkerson »

You don't need to restart the server, just the nagios process, same thing that happens when you Apply Configuration.
or

Code: Select all

service nagios restart
enoc wrote:Therefore is there any way to overwrite "service_check_timeout"? For example using a flag like "--timeout" or something similar.
there is no way to override this setting without the nagios process restarting
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Nagios ignores -T (--timeout) parameter while running sc

Post by scottwilkerson »

enoc wrote:Understood, I am trying to coordinate a manual restart for Sunday.
Will update soon.

Many thanks
Sounds good
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked