Module: check_mk
Branch: master
Commit: cc1898d467bf22a63166f1f8a6749eb893630cc9
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=cc1898d467bf22…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Thu Jan 15 16:40:51 2015 +0100
df: do not skip first check
---
checks/df.include | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/checks/df.include b/checks/df.include
index b6de5d7..053c88e 100644
--- a/checks/df.include
+++ b/checks/df.include
@@ -337,7 +337,7 @@ def df_check_filesystem_single(hostname, mountpoint, size_mb,
avail_mb, inodes_t
this_time = time.time()
# first compute current rate in MB/s by computing delta since last check
- rate = get_rate("df.%s.delta" % mountpoint, this_time, used_mb,
True)
+ rate = get_rate("df.%s.delta" % mountpoint, this_time, used_mb,
allow_negative=True, onwrap=ZERO)
if levels.get("trend_perfdata"):
# Change in 1.1.13i3: The trend perfdata always outputs
# the growth in MB/24h, not any longer in MB/trendrange
@@ -345,7 +345,7 @@ def df_check_filesystem_single(hostname, mountpoint, size_mb,
avail_mb, inodes_t
# average trend, initialize with zero, rate_avg is in MB/s
rate_avg = get_average("df.%s.trend" % mountpoint,
- this_time, rate, range_sec / 60.0, True)
+ this_time, rate, range_sec / 60.0, True)
# rate_avg is growth in MB/s, trend is in MB per trend range hours
trend = rate_avg * range_sec