Module: check_mk
Branch: master
Commit: 6de1be1f5ebb9042beee866ffe392975eaadb5b7
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=6de1be1f5ebb90…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Tue Jul 1 15:30:22 2014 +0200
Fix syntax error in hitachi_hnas_volume
---
checks/hitachi_hnas_volume | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/checks/hitachi_hnas_volume b/checks/hitachi_hnas_volume
index 3852708..740a744 100644
--- a/checks/hitachi_hnas_volume
+++ b/checks/hitachi_hnas_volume
@@ -35,10 +35,10 @@ def inventory_hitachi_hnas_volume(info):
def check_hitachi_hnas_volume(item, params, info):
# use checks from df.include
fslist = []
- for id, label, volume_status, total, free, evs in info:
- if id = '':
+ for volid, label, volume_status, total, free, evs in info:
+ if volid == '':
continue
- if id + " " + label == item:
+ if volid + " " + label == item:
size_mb = int(total) / 1048576.0
avail_mb = int(free) / 1048576.0
fslist.append((item, size_mb, avail_mb))
@@ -54,7 +54,7 @@ def check_hitachi_hnas_volume(item, params, info):
)
error_string = ( "", " (!)", " (!!)",
"" )
- volume_status=int(volume_status)
+ volume_status = int(volume_status)
if volume_status == 0 or volume_status >= len(statusmap):
message += ", Volume reports unidentified status %s" %
volume_status