remove SNMP variable names)
Message-ID: <55b9e6ff.nvjt5l8qPsbsZEL9%mk(a)mathias-kettner.de>
User-Agent: Heirloom mailx 12.5 6/20/10
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Module: check_mk
Branch: master
Commit: bcf27788647d9215791aa3ecf5ae7c2d4937052b
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=bcf27788647d92…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Thu Jul 30 10:57:32 2015 +0200
synology_raid: fixed output of check (remove SNMP variable names)
---
checks/synology_raid | 24 ++++++++++++------------
1 file changed, 12 insertions(+), 12 deletions(-)
diff --git a/checks/synology_raid b/checks/synology_raid
index 5cdedf8..8caad26 100644
--- a/checks/synology_raid
+++ b/checks/synology_raid
@@ -30,18 +30,18 @@ def inventory_synology_raid(info):
def check_synology_raid(item, _no_params, info):
states = {
- 1 : ("OK" ,0),
- 2 : ("Repairing" ,1),
- 3 : ("Migrating" ,1),
- 4 : ("Expanding" ,1),
- 5 : ("Deleting" ,1),
- 6 : ("Creating" ,1),
- 7 : ("RaidSyncing" ,0),
- 8 : ("RaidParityChecking" ,0),
- 9 : ("RaidAssembling" ,1),
- 10 : ("Canceling" ,1),
- 11 : ("Degrade" ,2),
- 12 : ("Crashed" ,2),
+ 1 : ("OK" ,0),
+ 2 : ("repairing" ,1),
+ 3 : ("migrating" ,1),
+ 4 : ("expanding" ,1),
+ 5 : ("deleting" ,1),
+ 6 : ("creating" ,1),
+ 7 : ("RAID syncing" ,0),
+ 8 : ("RAID parity checking" ,0),
+ 9 : ("RAID assembling" ,1),
+ 10 : ("cancelling" ,1),
+ 11 : ("degraded" ,2),
+ 12 : ("crashed" ,2),
}
for raid, status in info:
if raid == item: