Module: check_mk
Branch: master
Commit: 5e00a949ac63ea71f57f42adb371104f415766a0
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=5e00a949ac63ea…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Thu Mar 17 10:42:57 2011 +0100
diskstat: summary service description uppercase
---
checks/diskstat | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/checks/diskstat b/checks/diskstat
index 1209706..8a919d6 100644
--- a/checks/diskstat
+++ b/checks/diskstat
@@ -63,7 +63,7 @@ def inventory_diskstat(checkname, info):
return inventory
elif len(info) > 1:
if diskstat_inventory_mode == "summary":
- return [ ( "summary", "diskstat_default_levels") ]
+ return [ ( "SUMMARY", "diskstat_default_levels") ]
else:
return [ ( "read", None ), ( "write", None ) ]
@@ -114,7 +114,7 @@ def check_diskstat(item, params, info):
this_time = int(info[0][0])
# summary mode
- if item == 'summary': # summary mode
+ if item == 'SUMMARY': # summary mode
summary_line = [0] * 13
for line in info[1:]:
summary_line = map(lambda e: e[0] + int(e[1]), zip(summary_line, line[3:]))