Module: check_mk
Branch: master
Commit: bcd168a06e2d0f783f2228a0ba31624aac2f6d54
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=bcd168a06e2d0f…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Thu Jan 17 14:40:06 2013 +0100
FIX: myssql_tablespaces - fix PNP graph (thanks to Christian Zock)
---
ChangeLog | 1 +
pnp-templates/check_mk-mssql_tablespaces.php | 9 +++++----
2 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index e09e3fe..48fdf9a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -13,6 +13,7 @@
* FIX: logwatch_ec: Added state undefined as priority
* Add: mailman_lists - New check to gather statistics of mailman mailinglists
* FIX: megaraid_bbu - Handle missing charge information (ignoring them)
+ * FIX: myssql_tablespaces - fix PNP graph (thanks to Christian Zock)
Multisite:
* FIX: Fixed rendering of dashboard globes in opera
diff --git a/pnp-templates/check_mk-mssql_tablespaces.php
b/pnp-templates/check_mk-mssql_tablespaces.php
index 457d271..2ee3680 100644
--- a/pnp-templates/check_mk-mssql_tablespaces.php
+++ b/pnp-templates/check_mk-mssql_tablespaces.php
@@ -28,12 +28,13 @@ $title = str_replace("_", " ", $servicedesc);
$opt[1] = "--vertical-label 'Bytes' -l0 --title \"$title\"
";
#
$def[1] = "DEF:size=$RRDFILE[1]:$DS[1]:MAX " ;
-$def[1] .= "DEF:unallocated=$RRDFILE[2]:$DS[1]:MAX " ;
-$def[1] .= "DEF:data=$RRDFILE[4]:$DS[1]:MAX " ;
-$def[1] .= "DEF:indexes=$RRDFILE[5]:$DS[1]:MAX " ;
-$def[1] .= "DEF:unused=$RRDFILE[6]:$DS[1]:MAX " ;
+$def[1] .= "DEF:unallocated=$RRDFILE[2]:$DS[2]:MAX " ;
+$def[1] .= "DEF:data=$RRDFILE[4]:$DS[4]:MAX " ;
+$def[1] .= "DEF:indexes=$RRDFILE[5]:$DS[5]:MAX " ;
+$def[1] .= "DEF:unused=$RRDFILE[6]:$DS[6]:MAX " ;
$def[1] .= "AREA:size#f7f7f7:\"Size \" " ;
+$def[1] .= "LINE:size#000000 " ;
$def[1] .= "GPRINT:size:LAST:\"%4.2lf%sB\" ";
$def[1] .= "AREA:data#80c0ff:\"Data \" " ;