Module: check_mk
Branch: master
Commit: 8e95446f63e166aed71e08cf1c5f7e265945dc26
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=8e95446f63e166…
Author: Bastian Kuhn <bk(a)mathias-kettner.de>
Date: Wed Jun 20 19:14:15 2012 +0200
Fix: diskstat catch output from older agents
---
checks/diskstat.include | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/checks/diskstat.include b/checks/diskstat.include
index bd093b8..76668f5 100644
--- a/checks/diskstat.include
+++ b/checks/diskstat.include
@@ -124,7 +124,7 @@ def check_diskstat_line(this_time, item, params, line):
# Do Latency computation if this information is available:
if len(line) >= 6:
- reads, writes, timems = map(int, line[3:])
+ reads, writes, timems = map(int, line[3:6])
ios = reads + writes
timedif, ios_per_sec = get_counter(countername + ".ios", this_time,
ios)
timedif, timems_per_sec = get_counter(countername + ".time", this_time,
timems)