From 3e2ecafe4dc4dabef611c7eb6879730107a690e2 Mon Sep 17 00:00:00 2001 From: N0YB Date: Fri, 19 Jul 2013 17:15:00 -0700 Subject: [PATCH] 3652 days worth is a too much. Scale it back to more reasonable 1.25 x maximum used data (2284 days). --- etc/inc/rrd.inc | 52 +++++++++++++------------- usr/local/www/status_rrd_graph_img.php | 2 +- 2 files changed, 27 insertions(+), 27 deletions(-) diff --git a/etc/inc/rrd.inc b/etc/inc/rrd.inc index e9d74e4e8d..65f4db47f9 100644 --- a/etc/inc/rrd.inc +++ b/etc/inc/rrd.inc @@ -328,7 +328,7 @@ function enable_rrd_graphing() { $rrdcreate .= "RRA:AVERAGE:0.5:1:1200 "; $rrdcreate .= "RRA:AVERAGE:0.5:5:720 "; $rrdcreate .= "RRA:AVERAGE:0.5:60:1860 "; - $rrdcreate .= "RRA:AVERAGE:0.5:1440:3652 "; + $rrdcreate .= "RRA:AVERAGE:0.5:1440:2284 "; create_new_rrd($rrdcreate); unset($rrdcreate); @@ -361,7 +361,7 @@ function enable_rrd_graphing() { $rrdcreate .= "RRA:AVERAGE:0.5:1:1200 "; $rrdcreate .= "RRA:AVERAGE:0.5:5:720 "; $rrdcreate .= "RRA:AVERAGE:0.5:60:1860 "; - $rrdcreate .= "RRA:AVERAGE:0.5:1440:3652 "; + $rrdcreate .= "RRA:AVERAGE:0.5:1440:2284 "; create_new_rrd($rrdcreate); unset($rrdcreate); @@ -390,7 +390,7 @@ function enable_rrd_graphing() { $rrdcreate .= "RRA:AVERAGE:0.5:1:1200 "; $rrdcreate .= "RRA:AVERAGE:0.5:5:720 "; $rrdcreate .= "RRA:AVERAGE:0.5:60:1860 "; - $rrdcreate .= "RRA:AVERAGE:0.5:1440:3652 "; + $rrdcreate .= "RRA:AVERAGE:0.5:1440:2284 "; create_new_rrd($rrdcreate); unset($rrdcreate); @@ -415,7 +415,7 @@ function enable_rrd_graphing() { $rrdcreate .= "RRA:AVERAGE:0.5:1:1200 "; $rrdcreate .= "RRA:AVERAGE:0.5:5:720 "; $rrdcreate .= "RRA:AVERAGE:0.5:60:1860 "; - $rrdcreate .= "RRA:AVERAGE:0.5:1440:3652 "; + $rrdcreate .= "RRA:AVERAGE:0.5:1440:2284 "; create_new_rrd($rrdcreate); unset($rrdcreate); @@ -481,7 +481,7 @@ function enable_rrd_graphing() { $rrdcreate .= "RRA:AVERAGE:0.5:1:1200 "; $rrdcreate .= "RRA:AVERAGE:0.5:5:720 "; $rrdcreate .= "RRA:AVERAGE:0.5:60:1860 "; - $rrdcreate .= "RRA:AVERAGE:0.5:1440:3652 "; + $rrdcreate .= "RRA:AVERAGE:0.5:1440:2284 "; create_new_rrd($rrdcreate); unset($rrdcreate); @@ -498,7 +498,7 @@ function enable_rrd_graphing() { $rrdcreate .= "RRA:AVERAGE:0.5:1:1200 "; $rrdcreate .= "RRA:AVERAGE:0.5:5:720 "; $rrdcreate .= "RRA:AVERAGE:0.5:60:1860 "; - $rrdcreate .= "RRA:AVERAGE:0.5:1440:3652 "; + $rrdcreate .= "RRA:AVERAGE:0.5:1440:2284 "; create_new_rrd($rrdcreate); unset($rrdcreate); @@ -566,7 +566,7 @@ function enable_rrd_graphing() { $rrdcreate .= "RRA:AVERAGE:0.5:1:1200 "; $rrdcreate .= "RRA:AVERAGE:0.5:5:720 "; $rrdcreate .= "RRA:AVERAGE:0.5:60:1860 "; - $rrdcreate .= "RRA:AVERAGE:0.5:1440:3652 "; + $rrdcreate .= "RRA:AVERAGE:0.5:1440:2284 "; create_new_rrd($rrdcreate); unset($rrdcreate); } @@ -599,7 +599,7 @@ function enable_rrd_graphing() { $rrdcreate .= "RRA:AVERAGE:0.5:1:1200 "; $rrdcreate .= "RRA:AVERAGE:0.5:5:720 "; $rrdcreate .= "RRA:AVERAGE:0.5:60:1860 "; - $rrdcreate .= "RRA:AVERAGE:0.5:1440:3652 "; + $rrdcreate .= "RRA:AVERAGE:0.5:1440:2284 "; create_new_rrd($rrdcreate); unset($rrdcreate); @@ -634,7 +634,7 @@ function enable_rrd_graphing() { $rrdcreate .= "RRA:AVERAGE:0.5:1:1200 "; $rrdcreate .= "RRA:AVERAGE:0.5:5:720 "; $rrdcreate .= "RRA:AVERAGE:0.5:60:1860 "; - $rrdcreate .= "RRA:AVERAGE:0.5:1440:3652 "; + $rrdcreate .= "RRA:AVERAGE:0.5:1440:2284 "; create_new_rrd($rrdcreate); unset($rrdcreate); @@ -664,15 +664,15 @@ function enable_rrd_graphing() { $rrdcreate .= "RRA:MIN:0.5:1:1200 "; $rrdcreate .= "RRA:MIN:0.5:5:720 "; $rrdcreate .= "RRA:MIN:0.5:60:1860 "; - $rrdcreate .= "RRA:MIN:0.5:1440:3652 "; + $rrdcreate .= "RRA:MIN:0.5:1440:2284 "; $rrdcreate .= "RRA:AVERAGE:0.5:1:1200 "; $rrdcreate .= "RRA:AVERAGE:0.5:5:720 "; $rrdcreate .= "RRA:AVERAGE:0.5:60:1860 "; - $rrdcreate .= "RRA:AVERAGE:0.5:1440:3652 "; + $rrdcreate .= "RRA:AVERAGE:0.5:1440:2284 "; $rrdcreate .= "RRA:MAX:0.5:1:1200 "; $rrdcreate .= "RRA:MAX:0.5:5:720 "; $rrdcreate .= "RRA:MAX:0.5:60:1860 "; - $rrdcreate .= "RRA:MAX:0.5:1440:3652"; + $rrdcreate .= "RRA:MAX:0.5:1440:2284"; create_new_rrd($rrdcreate); unset($rrdcreate); @@ -701,15 +701,15 @@ function enable_rrd_graphing() { $rrdcreate .= "RRA:MIN:0.5:1:1200 "; $rrdcreate .= "RRA:MIN:0.5:5:720 "; $rrdcreate .= "RRA:MIN:0.5:60:1860 "; - $rrdcreate .= "RRA:MIN:0.5:1440:3652 "; + $rrdcreate .= "RRA:MIN:0.5:1440:2284 "; $rrdcreate .= "RRA:AVERAGE:0.5:1:1200 "; $rrdcreate .= "RRA:AVERAGE:0.5:5:720 "; $rrdcreate .= "RRA:AVERAGE:0.5:60:1860 "; - $rrdcreate .= "RRA:AVERAGE:0.5:1440:3652 "; + $rrdcreate .= "RRA:AVERAGE:0.5:1440:2284 "; $rrdcreate .= "RRA:MAX:0.5:1:1200 "; $rrdcreate .= "RRA:MAX:0.5:5:720 "; $rrdcreate .= "RRA:MAX:0.5:60:1860 "; - $rrdcreate .= "RRA:MAX:0.5:1440:3652"; + $rrdcreate .= "RRA:MAX:0.5:1440:2284"; create_new_rrd($rrdcreate); unset($rrdcreate); @@ -738,15 +738,15 @@ function enable_rrd_graphing() { $rrdcreate .= "RRA:MIN:0.5:1:1200 "; $rrdcreate .= "RRA:MIN:0.5:5:720 "; $rrdcreate .= "RRA:MIN:0.5:60:1860 "; - $rrdcreate .= "RRA:MIN:0.5:1440:3652 "; + $rrdcreate .= "RRA:MIN:0.5:1440:2284 "; $rrdcreate .= "RRA:AVERAGE:0.5:1:1200 "; $rrdcreate .= "RRA:AVERAGE:0.5:5:720 "; $rrdcreate .= "RRA:AVERAGE:0.5:60:1860 "; - $rrdcreate .= "RRA:AVERAGE:0.5:1440:3652 "; + $rrdcreate .= "RRA:AVERAGE:0.5:1440:2284 "; $rrdcreate .= "RRA:MAX:0.5:1:1200 "; $rrdcreate .= "RRA:MAX:0.5:5:720 "; $rrdcreate .= "RRA:MAX:0.5:60:1860 "; - $rrdcreate .= "RRA:MAX:0.5:1440:3652 "; + $rrdcreate .= "RRA:MAX:0.5:1440:2284 "; create_new_rrd($rrdcreate); unset($rrdcreate); @@ -774,19 +774,19 @@ function enable_rrd_graphing() { $rrdcreate .= "RRA:AVERAGE:0.5:1:1200 "; $rrdcreate .= "RRA:AVERAGE:0.5:5:720 "; $rrdcreate .= "RRA:AVERAGE:0.5:60:1860 "; - $rrdcreate .= "RRA:AVERAGE:0.5:1440:3652 "; + $rrdcreate .= "RRA:AVERAGE:0.5:1440:2284 "; $rrdcreate .= "RRA:MIN:0.5:1:1200 "; $rrdcreate .= "RRA:MIN:0.5:5:720 "; $rrdcreate .= "RRA:MIN:0.5:60:1860 "; - $rrdcreate .= "RRA:MIN:0.5:1440:3652 "; + $rrdcreate .= "RRA:MIN:0.5:1440:2284 "; $rrdcreate .= "RRA:MAX:0.5:1:1200 "; $rrdcreate .= "RRA:MAX:0.5:5:720 "; $rrdcreate .= "RRA:MAX:0.5:60:1860 "; - $rrdcreate .= "RRA:MAX:0.5:1440:3652 "; + $rrdcreate .= "RRA:MAX:0.5:1440:2284 "; $rrdcreate .= "RRA:LAST:0.5:1:1200 "; $rrdcreate .= "RRA:LAST:0.5:5:720 "; $rrdcreate .= "RRA:LAST:0.5:60:1860 "; - $rrdcreate .= "RRA:LAST:0.5:1440:3652 "; + $rrdcreate .= "RRA:LAST:0.5:1440:2284 "; create_new_rrd($rrdcreate); unset($rrdcreate); @@ -810,19 +810,19 @@ function enable_rrd_graphing() { $rrdcreate .= "RRA:AVERAGE:0.5:1:1200 "; $rrdcreate .= "RRA:AVERAGE:0.5:5:720 "; $rrdcreate .= "RRA:AVERAGE:0.5:60:1860 "; - $rrdcreate .= "RRA:AVERAGE:0.5:1440:3652 "; + $rrdcreate .= "RRA:AVERAGE:0.5:1440:2284 "; $rrdcreate .= "RRA:MIN:0.5:1:1200 "; $rrdcreate .= "RRA:MIN:0.5:5:720 "; $rrdcreate .= "RRA:MIN:0.5:60:1860 "; - $rrdcreate .= "RRA:MIN:0.5:1440:3652 "; + $rrdcreate .= "RRA:MIN:0.5:1440:2284 "; $rrdcreate .= "RRA:MAX:0.5:1:1200 "; $rrdcreate .= "RRA:MAX:0.5:5:720 "; $rrdcreate .= "RRA:MAX:0.5:60:1860 "; - $rrdcreate .= "RRA:MAX:0.5:1440:3652 "; + $rrdcreate .= "RRA:MAX:0.5:1440:2284 "; $rrdcreate .= "RRA:LAST:0.5:1:1200 "; $rrdcreate .= "RRA:LAST:0.5:5:720 "; $rrdcreate .= "RRA:LAST:0.5:60:1860 "; - $rrdcreate .= "RRA:LAST:0.5:1440:3652 "; + $rrdcreate .= "RRA:LAST:0.5:1440:2284 "; create_new_rrd($rrdcreate); unset($rrdcreate); diff --git a/usr/local/www/status_rrd_graph_img.php b/usr/local/www/status_rrd_graph_img.php index 13122cae5d..99d8b7e9b7 100644 --- a/usr/local/www/status_rrd_graph_img.php +++ b/usr/local/www/status_rrd_graph_img.php @@ -99,7 +99,7 @@ $archives = array(); $archives[1] = 1200; $archives[5] = 720; $archives[60] = 1860; -$archives[1440] = 3652; +$archives[1440] = 2284; $defOptions = array( 'to' => 1,