Module: check_mk
Branch: master
Commit: 77eb8361584548dbed19b0bc496e0f2366139be1
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=77eb8361584548…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Thu Feb 6 16:00:03 2014 +0100
wut_webtherm: Support new versions of WUT-Thermometer
Now also support devices with OID 18.
---
.werks/694 | 9 +++++++++
ChangeLog | 1 +
checks/wut_webtherm | 7 ++++---
3 files changed, 14 insertions(+), 3 deletions(-)
diff --git a/.werks/694 b/.werks/694
new file mode 100644
index 0000000..bfaa36e
--- /dev/null
+++ b/.werks/694
@@ -0,0 +1,9 @@
+Title: wut_webtherm: Support new versions of WUT-Thermometer
+Level: 1
+Component: checks
+Class: feature
+State: unknown
+Version: 1.2.5i1
+Date: 1391698766
+
+Now also support devices with OID 18.
diff --git a/ChangeLog b/ChangeLog
index 8694e36..005fb67 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -84,6 +84,7 @@
* 0700 arcserve_backup: new check for status of backups in an Arcserve Backup Server
* 0580 emc_datadomain_fans, emc_datadomain_nvbat, emc_datadomain_power,
emc_datadomain_temps: new hardware checks for EMC Datadomain
* 0691 Solaris agent: include lofs in list of monitored filesystem types
+ * 0694 wut_webtherm: Support new versions of WUT-Thermometer...
* 0103 FIX: services: Fixed bug with service inventory defined in main.mk...
* 0299 FIX: borcade_mlx_fan: Prettified output, handling "other" state now
* 0300 FIX: cisco_fru_power: Trying not to inventorize not plugged in FRUs...
diff --git a/checks/wut_webtherm b/checks/wut_webtherm
index 445479a..fdcbb07 100644
--- a/checks/wut_webtherm
+++ b/checks/wut_webtherm
@@ -27,7 +27,7 @@
wut_webtherm_defaultlevels = (30, 35)
def inventory_webtherm(info):
- # line[0] is 1.1, 2.1, 3.1, 6.1, 8.1 or 16.1 depending on MIB variant. We chop
+ # line[0] is 1.1, 2.1, 3.1, 6.1, 8.1, 16.1 or 18.1 depending on MIB variant. We chop
# of the first part in order to get independent of that.
return [ (line[0].split(".")[1], "wut_webtherm_defaultlevels")
for
line in info if len(line) == 2 ]
@@ -56,7 +56,8 @@ def detect_webtherm(oid):
".1.3.6.1.4.1.5040.1.2.7",
".1.3.6.1.4.1.5040.1.2.8",
".1.3.6.1.4.1.5040.1.2.9",
- ".1.3.6.1.4.1.5040.1.2.16" ]
+ ".1.3.6.1.4.1.5040.1.2.16",
+ ".1.3.6.1.4.1.5040.1.2.18" ]
check_info["wut_webtherm"] = {
'check_function': check_webtherm,
@@ -64,7 +65,7 @@ check_info["wut_webtherm"] = {
'service_description': 'Thermograph Sensor %s',
'has_perfdata': True,
'snmp_info': ('.1.3.6.1.4.1.5040.1.2',
- ['1', '2', '3', '6', '7', '8',
'9', '16'],
+ ['1', '2', '3', '6', '7', '8',
'9', '16', '18'],
['1.2.1.1', '1.3.1.1']
),
'snmp_scan_function': detect_webtherm,