Module: check_mk
Branch: master
Commit: b2d8b4674679d4f409d558c937218e0e7693bc54
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=b2d8b4674679d4…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Fri Dec 18 10:56:48 2015 +0100
#2820 FIX winperf_phydisk: fixed invalid performance data for read/write ios
---
.werks/2820 | 9 +++++++++
ChangeLog | 1 +
checks/winperf_phydisk | 4 ++--
3 files changed, 12 insertions(+), 2 deletions(-)
diff --git a/.werks/2820 b/.werks/2820
new file mode 100644
index 0000000..99ea525
--- /dev/null
+++ b/.werks/2820
@@ -0,0 +1,9 @@
+Title: winperf_phydisk: fixed invalid performance data for read/write ios
+Level: 1
+Component: checks
+Compatible: compat
+Version: 1.2.7i4
+Date: 1450432589
+Class: fix
+
+
diff --git a/ChangeLog b/ChangeLog
index 4f336df..7d1c200 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -162,6 +162,7 @@
* 2813 FIX: agent_netapp: fixed missing environmental sensor information and
exception with snapshot volumes...
* 2818 FIX: check_mail_loop: now only deletes expected mails and not all mails
matching a specific pattern...
* 2819 FIX: netapp_api_if: now able to detect even more interfaces...
+ * 2820 FIX: winperf_phydisk: fixed invalid performance data for read/write ios
Multisite:
* 2684 Added icons for downloading agent data / walks of hosts...
diff --git a/checks/winperf_phydisk b/checks/winperf_phydisk
index cca658b..91636e0 100644
--- a/checks/winperf_phydisk
+++ b/checks/winperf_phydisk
@@ -163,9 +163,9 @@ def check_winperf_phydisk(item, params, info):
result[disk[1]] = {
'node' : disk[0],
- 'read_ios' : disk[4],
+ 'read_ios' : get_rate("readios_" + disk_id,
this_time, disk[4]),
'read_throughput' : get_rate("readtp_" + disk_id,
this_time, disk[2]),
- 'write_ios' : disk[5],
+ 'write_ios' : get_rate("writeios_" + disk_id,
this_time, disk[5]),
'write_throughput' : get_rate("writetp_" + disk_id,
this_time, disk[3]),
}
if frequency: