Module: check_mk
Branch: master
Commit: 3af641bf8e7022dc53c2b2b87aff4ef058042a59
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=3af641bf8e7022…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Tue Jan 20 10:38:48 2015 +0100
#1670 winperf_processor: fixed invalid check values on counter wrap
This check reused a counter wrapped value in further counter calculations.
---
.werks/1670 | 9 +++++++++
ChangeLog | 1 +
checks/winperf_processor | 2 +-
3 files changed, 11 insertions(+), 1 deletion(-)
diff --git a/.werks/1670 b/.werks/1670
new file mode 100644
index 0000000..7a737fc
--- /dev/null
+++ b/.werks/1670
@@ -0,0 +1,9 @@
+Title: winperf_processor: fixed invalid check values on counter wrap
+Level: 1
+Component: checks
+Compatible: compat
+Version: 1.2.7i1
+Date: 1421742895
+Class: feature
+
+This check reused a counter wrapped value in further counter calculations.
diff --git a/ChangeLog b/ChangeLog
index de00fd3..f67ab73 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -42,6 +42,7 @@
* 1214
ups_bat_temp,ups_capacity,ups_in_freq,ups_in_voltage,ups_out_load,ups_out_voltage: Checks
now detect more UPS Devices...
* 1523 lnx_thermal: Now supports setting levels...
NOTE: Please refer to the migration notes!
+ * 1670 winperf_processor: fixed invalid check values on counter wrap...
* 1457 FIX: logins: new check renamed from "users" check...
NOTE: Please refer to the migration notes!
* 1762 FIX: lnx_thermal: Now ignoring trip points with level 0...
diff --git a/checks/winperf_processor b/checks/winperf_processor
index 93dd1c2..ed1309d 100644
--- a/checks/winperf_processor
+++ b/checks/winperf_processor
@@ -51,7 +51,7 @@ def check_winperf_util(_no_item, params, info):
# sums up to total (called _Total). We only need that last value.
ticks = int(line[-2])
num_cpus = len(line) - 3
- ticks_per_sec = get_rate("winperf_util", this_time, ticks)
+ ticks_per_sec = get_rate("winperf_util", this_time, ticks, onwrap =
RAISE)
# We get the value of the PERF_100NSEC_TIMER_INV here.
# This counter type shows the average percentage of active time observed
# during the sample interval. This is an inverse counter. Counters of this