Module: check_mk
Branch: master
Commit: 1d176fe148755cad6b7dbd39f754c34efa05a372
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=1d176fe148755c…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Sun Feb 27 15:53:43 2011 +0100
FIX: repair PNP template for df when using trends
---
ChangeLog | 1 +
pnp-templates/check_mk-df.php | 2 ++
2 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index a4086bd..b6151d4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -30,6 +30,7 @@
now df-parameter "trend_perfdata" (see new man page of df)
* hp_proliant_*: improve scan function (now just looks for "proliant")
* FIX: cisco_temp_perf: fix return state in case of WARNING (was 0 = OK)
+ * FIX: repair PNP template for df when using trends
1.1.9i9:
Core, Setup, etc.:
diff --git a/pnp-templates/check_mk-df.php b/pnp-templates/check_mk-df.php
index c28e4ac..7c0bdd3 100644
--- a/pnp-templates/check_mk-df.php
+++ b/pnp-templates/check_mk-df.php
@@ -71,6 +71,8 @@ if (isset($DS[2])) {
$def[2] .= "DEF:trend=$RRDFILE[3]:$DS[3]:AVERAGE ";
$def[2] .= "CDEF:growth_pos=growth_max,0,MAX ";
$def[2] .= "CDEF:growth_neg=growth_min,0,MIN ";
+ $def[2] .= "CDEF:growth_minabs=0,growth_min,- ";
+ $def[2] .= "CDEF:growth=growth_minabs,growth_max,MAX ";
$def[2] .= "HRULE:0#c0c0c0 ";
$def[2] .= "AREA:growth_pos#3060f0:\"Grow\" ";
$def[2] .= "AREA:growth_neg#30f060:\"Shrink \" ";