Module: check_mk
Branch: master
Commit: 18769c2fae2662456255a5c6e6a417dbb6d07d35
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=18769c2fae2662…
Author: Goetz Golla <gg(a)mathias-kettner.de>
Date: Tue Jun 17 16:45:01 2014 +0200
FIX fsc_fans: upper levels for fan RPMs are now optional also for the check
---
.werks/623 | 8 ++++++++
ChangeLog | 1 +
checks/fsc_fans | 2 +-
3 files changed, 10 insertions(+), 1 deletion(-)
diff --git a/.werks/623 b/.werks/623
new file mode 100644
index 0000000..673b40d
--- /dev/null
+++ b/.werks/623
@@ -0,0 +1,8 @@
+Title: fsc_fans: upper levels for fan RPMs are now optional also for the check
+Level: 1
+Component: checks
+Version: 1.2.5i4
+Date: 1403016253
+Class: fix
+
+
diff --git a/ChangeLog b/ChangeLog
index 1d97eaf..8ae1571 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -14,6 +14,7 @@
* 0621 FIX: zfsget: better filesystem selection and calculation of sizes...
* 0819 FIX: Fixed keepalive termination in case of exceptions during checking...
* 0622 FIX: cisco_temp_sensor: fix to also work with newer IOS versions
+ * 0623 FIX: fsc_fans: upper levels for fan RPMs are now optional also for the check
Multisite:
* 0934 FIX: Logwatch messages with class unknown ( 'u' ) now displayed as
WARN...
diff --git a/checks/fsc_fans b/checks/fsc_fans
index 01644cc..03917f5 100644
--- a/checks/fsc_fans
+++ b/checks/fsc_fans
@@ -34,7 +34,7 @@ def check_fsc_fans(item, params, info):
up_warn, up_crit = None, None
else:
low_warn, low_crit = params['lower']
- up_warn, up_crit = params['upper']
+ up_warn, up_crit = params.get('upper', ( None, None))
for line in info: # , value1, value2 in info:
name = line[0]