Module: check_mk
Branch: master
Commit: 15e11ffcb534a065f807b261a0d79be2fe2f7d78
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=15e11ffcb534a0…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Wed Feb 16 10:05:34 2011 +0100
When trends are enabled but trend counters wrap or are initialized the regular df perfdata
is suppressed now to prevent rrds with not enough rows
---
.bugs/132 | 9 +++++++++
checks/df.include | 6 +++++-
2 files changed, 14 insertions(+), 1 deletions(-)
diff --git a/.bugs/132 b/.bugs/132
new file mode 100644
index 0000000..8073213
--- /dev/null
+++ b/.bugs/132
@@ -0,0 +1,9 @@
+Title: logwatch_max_filesize is missing in 'config variables' doku
+Component: doku
+Benefit: 5
+State: open
+Cost: 6
+Date: 2011-02-11 11:20:58
+Class: todo
+
+The parameter logwatch_max_filesize is not mentioned on the config variable page.
diff --git a/checks/df.include b/checks/df.include
index 5be7223..21a97d4 100644
--- a/checks/df.include
+++ b/checks/df.include
@@ -214,7 +214,11 @@ def df_check_filesystem(hostname, mountpoint, size_mb, avail_mb,
params):
except MKCounterWrapped:
- pass # need more data for computing a trend
+ # need more data for computing a trend
+
+ # In this case erase all perfdata to prevent an rrd file which has no space
+ # for the trend information
+ perfdata = []
if used_mb >= crit_mb: