updates and fixes

git-svn-id: http://www.observium.org/svn/observer/trunk@519 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Adam Amstrong
2009-11-12 17:51:36 +00:00
parent d8155aacff
commit 17f74b5aa4
7 changed files with 1503 additions and 20 deletions

View File

@@ -30,7 +30,17 @@ $scale_max = "100";
$nototal = 1;
include ("generic_multi_line.inc.php");
if($rrd_list) {include ("generic_multi_line.inc.php"); } else {
include("common.inc.php");
$database = $config['rrd_dir'] . "/" . $hostname . "/ios-cpu.rrd";
$rrd_options .= " DEF:5m=$database:LOAD5M:AVERAGE";
$rrd_options .= " DEF:5m_max=$database:LOAD5M:MAX";
$rrd_options .= " DEF:5m_min=$database:LOAD5M:MIN";
$rrd_options .= " COMMENT:\ \ \ \ \ \ \ \ \ \ Current\ \ Minimum\ \ Maximum\ \ Average\\\\n";
$rrd_options .= " AREA:5m#ffee99: LINE1.25:5m#aa2200:Load\ %";
$rrd_options .= " GPRINT:5m:LAST:%6.2lf\ GPRINT:5m_min:AVERAGE:%6.2lf\ ";
$rrd_options .= " GPRINT:5m_max:MAX:%6.2lf\ GPRINT:5m:AVERAGE:%6.2lf\\\\n";
}
?>