mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-27 16:08:55 +02:00
move all RRA decisions to config. switch mempool/storage to new rrds (sorry, data lost, the old rrds sucked). added some more apps pages.
git-svn-id: http://www.observium.org/svn/observer/trunk@3068 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -12,11 +12,14 @@ if ($multiplier)
|
||||
{
|
||||
$rrd_options .= " DEF:".$ds."_o=".$rrd_filename.":".$ds.":AVERAGE";
|
||||
$rrd_options .= " DEF:".$ds."_max_o=".$rrd_filename.":".$ds.":MAX";
|
||||
$rrd_options .= " DEF:".$ds."_min_o=".$rrd_filename.":".$ds.":MIN";
|
||||
$rrd_options .= " CDEF:".$ds."=".$ds."_o,$multiplier,*";
|
||||
$rrd_options .= " CDEF:".$ds."_max=".$ds."_max_o,$multiplier,*";
|
||||
$rrd_options .= " CDEF:".$ds."_min=".$ds."_min_o,$multiplier,*";
|
||||
} else {
|
||||
$rrd_options .= " DEF:".$ds."=".$rrd_filename.":".$ds.":AVERAGE";
|
||||
$rrd_options .= " DEF:".$ds."_max=".$rrd_filename.":".$ds.":MAX";
|
||||
$rrd_options .= " DEF:".$ds."_min=".$rrd_filename.":".$ds.":MIN";
|
||||
}
|
||||
if ($print_total)
|
||||
{
|
||||
@@ -27,10 +30,6 @@ if ($percentile)
|
||||
{
|
||||
$rrd_options .= " VDEF:".$ds."_percentile=".$ds.",".$percentile.",PERCENT";
|
||||
}
|
||||
if ($graph_max)
|
||||
{
|
||||
$rrd_options .= " AREA:".$ds."_max#".$colour_area_max.":";
|
||||
}
|
||||
|
||||
if($_GET['previous'] == "yes")
|
||||
{
|
||||
@@ -62,8 +61,19 @@ if($_GET['previous'] == "yes")
|
||||
# }
|
||||
}
|
||||
|
||||
if($colour_minmax)
|
||||
{
|
||||
$rrd_options .= " AREA:".$ds."_max#c5c5c5";
|
||||
$rrd_options .= " AREA:".$ds."_min#ffffffff";
|
||||
} else {
|
||||
$rrd_options .= " AREA:".$ds."#".$colour_area.":";
|
||||
if ($graph_max)
|
||||
{
|
||||
$rrd_options .= " AREA:".$ds."_max#".$colour_area_max.":";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
$rrd_options .= " AREA:".$ds."#".$colour_area.":";
|
||||
$rrd_options .= " COMMENT:'".$unit_text."Now Ave Max";
|
||||
|
||||
if ($percentile)
|
||||
|
||||
Reference in New Issue
Block a user