Module: check_mk
Branch: master
Commit: 206387b134c3a1db80716a980c3de61bb4317665
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=206387b134c3a1…
Author: Konstantin Büttner <kb(a)mathias-kettner.de>
Date: Wed Oct 29 13:29:19 2014 +0100
ups_socomec_out_source: Changed interpretation of states to v6 MIB
---
checkman/ups_socomec_out_source | 7 +++++--
checks/ups_socomec_out_source | 3 +--
2 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/checkman/ups_socomec_out_source b/checkman/ups_socomec_out_source
index 50acc2d..e15613e 100644
--- a/checkman/ups_socomec_out_source
+++ b/checkman/ups_socomec_out_source
@@ -5,8 +5,11 @@ license: GPL
distribution: check_mk
description:
Checks by which source the output phase is powered. Warns if the device
- reports internal maintenance bypass, goes critical during battery operation
- or when offline. SNMP state "other" is treated as unknown.
+ reports internal maintenance bypass or bypass, goes critical during battery operation
+ ({"On inverter"}) or when offline. Caveat: Currently, states are interpreted
according to
+ the NetVision-nv6 MIB. Other firmware versions might be incompatible. Please send us a
+ {cmk --snmpwalk} along with a description as to how the check behaves unexpectedly in
+ your setup.
inventory:
One check per Socomec UPS is created.
diff --git a/checks/ups_socomec_out_source b/checks/ups_socomec_out_source
index 3c3ea7b..c64e1ca 100644
--- a/checks/ups_socomec_out_source
+++ b/checks/ups_socomec_out_source
@@ -49,7 +49,6 @@ check_info['ups_socomec_out_source'] = {
"inventory_function" : inventory_ups_socomec_out_source,
"check_function" : check_ups_socomec_out_source,
"service_description" : "Output Source",
- "has_perfdata" : False,
"snmp_info" : ( ".1.3.6.1.4.1.4555.1.1.1.1.4",
["1"] ),
- "snmp_scan_function" : lambda oid:
oid(".1.3.6.1.2.1.1.1.0").startswith("Net Vision"),
+ "snmp_scan_function" : lambda oid: oid(".1.3.6.1.2.1.1.2.0")
== ".1.3.6.1.4.1.4555.1.1.1",
}