Module: check_mk
Branch: master
Commit: 26bf705338ca5b2450013de6354975c28ecc773b
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=26bf705338ca5b…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Mon Sep 14 10:19:41 2015 +0200
#2605 FIX mbg_lantime_ng_fan: Fixed exception in check / added missing man page
---
.werks/2605 | 9 +++++++++
ChangeLog | 1 +
checkman/mbg_lantime_ng_fan | 18 ++++++++++++++++++
checks/mbg_lantime_ng_fan | 2 +-
4 files changed, 29 insertions(+), 1 deletion(-)
diff --git a/.werks/2605 b/.werks/2605
new file mode 100644
index 0000000..52afaff
--- /dev/null
+++ b/.werks/2605
@@ -0,0 +1,9 @@
+Title: mbg_lantime_ng_fan: Fixed exception in check / added missing man page
+Level: 1
+Component: checks
+Compatible: compat
+Version: 1.2.7i3
+Date: 1442218759
+Class: fix
+
+
diff --git a/ChangeLog b/ChangeLog
index 7b71568..fed730b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -179,6 +179,7 @@
NOTE: Please refer to the migration notes!
* 2561 FIX: check-mk-agent rpm is now also replacing check_mk_agent named rpms...
* 2594 FIX: mem.linux: Remove several bogus exceeding time graphs
+ * 2605 FIX: mbg_lantime_ng_fan: Fixed exception in check / added missing man page
Multisite:
* 2385 SEC: Fixed possible reflected XSS on all GUI pages where users can produce
unhandled exceptions...
diff --git a/checkman/mbg_lantime_ng_fan b/checkman/mbg_lantime_ng_fan
new file mode 100644
index 0000000..8f3ff6e
--- /dev/null
+++ b/checkman/mbg_lantime_ng_fan
@@ -0,0 +1,18 @@
+title: Meinberg LANTIME devices: Fans (NG MIB)
+agents: snmp
+catalog: hw/time/meinberg
+license: GPL
+distribution: check_mk
+description:
+ This check monitors the fans of Meinberg LANTIME clocks supporting the
+ new MBG-LANTIME-NG-MIB.
+
+ The check handles the state of all fans present. It analyzes the
+ reported state and error flag of the fans. Fans which are not operating
+ or having an error flag set, are reported as being {CRITICAL}.
+
+inventory:
+ One service per fan is created.
+
+item:
+ The index number of the fan.
diff --git a/checks/mbg_lantime_ng_fan b/checks/mbg_lantime_ng_fan
index 41405a5..bf65e0c 100644
--- a/checks/mbg_lantime_ng_fan
+++ b/checks/mbg_lantime_ng_fan
@@ -30,7 +30,7 @@ def inventory_mbg_lantime_ng_fan(info):
yield line[0], None
def check_mbg_lantime_ng_fan(item, _no_params, info):
- fan_stati = {
+ fan_states = {
"1": (0, "on"),
"2": (2, "off"),
}