Module: check_mk
Branch: master
Commit: 128398465cf546d582959dd5d3ed70e55b27f9dd
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=128398465cf546…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Mon Sep 28 13:14:01 2015 +0200
Fixed name of hitachi_hus_status checks (was hitatchi_hus_status)
---
.werks/1292 | 4 ++--
checks/hitachi_hus_status | 10 +++++-----
2 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/.werks/1292 b/.werks/1292
index 2f7d502..f7a5ac3 100644
--- a/.werks/1292
+++ b/.werks/1292
@@ -6,5 +6,5 @@ Version: 1.2.7i3
Date: 1441635061
Class: fix
-The internal name of the check changed. You will not loose any history data, but it is
needed to make rediscovery.
-
+The internal name of the check changed. You will not loose any history data,
+but it is needed to make rediscovery.
diff --git a/checks/hitachi_hus_status b/checks/hitachi_hus_status
index c39a419..6d73b85 100644
--- a/checks/hitachi_hus_status
+++ b/checks/hitachi_hus_status
@@ -25,10 +25,10 @@
# Boston, MA 02110-1301 USA.
-def inventory_hitatchi_hus_status2(info):
+def inventory_hitachi_hus_status(info):
return [ (None, None)]
-def check_hitatchi_hus_status2(_no_item, _no_params, info):
+def check_hitachi_hus_status(_no_item, _no_params, info):
status_values = {
0 : ( 0, "Array in normal status" ),
1 : ( 2, "Drive blocked" ),
@@ -58,9 +58,9 @@ def check_hitatchi_hus_status2(_no_item, _no_params, info):
if status & int(info[0][0]):
yield state, message
-check_info["hitatchi_hus_status"] = {
- "check_function" : check_hitatchi_hus_status2,
- "inventory_function" : inventory_hitatchi_hus_status2,
+check_info["hitachi_hus_status"] = {
+ "check_function" : check_hitachi_hus_status,
+ "inventory_function" : inventory_hitachi_hus_status,
"service_description" : "Status",
"snmp_info" : (".1.3.6.1.4.1.116.5.11.1.2.2", [ 1
]),
"snmp_scan_function" : lambda oid:
oid(".1.3.6.1.2.1.1.2.0").startswith(".1.3.6.1.4.1.116"),