Module: check_mk
Branch: master
Commit: ed203da1e9560a828c404ab283d46f81d13d5d55
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=ed203da1e9560a…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Thu Apr 11 10:55:10 2013 +0200
fixed crash when check_interval in extra_service_conf is missing
---
modules/check_mk.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/modules/check_mk.py b/modules/check_mk.py
index e07ad46..f9fe105 100755
--- a/modules/check_mk.py
+++ b/modules/check_mk.py
@@ -1784,7 +1784,7 @@ def create_nagios_servicedefs(outfile, hostname):
# (if configured) the snmp_check_interval for snmp based checks
check_interval = 60 # default hardcoded interval
# Customized interval of Check_MK service
- values = service_extra_conf(hostname, "Check_MK",
extra_service_conf.get('check_interval'))
+ values = service_extra_conf(hostname, "Check_MK",
extra_service_conf.get('check_interval', []))
if values:
check_interval = values[0] * 60
value = check_interval_of(hostname, checkname)