Archived
1
0

align default timeout with Nagios/Icinga defaults

* Set the default timeout to 55 seconds.
  This is intended to be aligned to Nagios’s/Icinga’s default values for “service_check_timeout” which is 60 seconds. The gap of 5 seconds should leave enough time to e.g. have remote connections like ssh or NRPE closed.
  Comparing it with e.g. APT (which is always really fast), YUM is very very slow - even when using chached mode. Therefore I try to use most of the time, Nagios/Icinga would grant a service check per default plus some gap.
  Of course, administrators should still manually constrain their check_yum invocations if the see, that less time is always enough.
This commit is contained in:
Christoph Anton Mitterer 2012-09-30 01:07:08 +02:00
parent 533663f9ef
commit 7da4fd46ae

View File

@ -24,7 +24,7 @@ except ImportError:
import commands
from optparse import OptionParser
DEFAULT_TIMEOUT = 30
DEFAULT_TIMEOUT = 55
def end(status, message, perfdata=""):