Extended 'port previous' graphs (#10556)

* Update ping_perf.inc.php
* Update poller_perf.inc.php
* Update generic_data.inc.php
* Update generic_multi_seperated.inc.php
* Update poller_modules_perf.inc.php
* Update poller_perf.inc.php
* Update ping_perf.inc.php
remove // comment (old code)
* Update poller_perf.inc.php
remove // comment (old code)
* Update generic_multi_seperated.inc.php
remove // comment (old code)
* Update poller_perf.inc.php
remove // comment (old code)
This commit is contained in:
SniperVegeta
2019-09-14 23:45:38 +02:00
committed by PipoCanaja
parent 9768790440
commit 82ea950263
6 changed files with 181 additions and 18 deletions

View File

@@ -23,3 +23,12 @@ $rrd_options .= " 'COMMENT:Milliseconds Cur Min Max Avg\\n'";
$rrd_options .= ' LINE1.25:ping#36393D:Ping';
$rrd_options .= ' GPRINT:ping:LAST:%14.2lf GPRINT:ping:AVERAGE:%6.2lf';
$rrd_options .= " GPRINT:ping:MAX:%6.2lf 'GPRINT:ping:AVERAGE:%6.2lf\\n'";
if ($_GET['previous'] == 'yes') {
$rrd_options .= " COMMENT:' \\n'";
$rrd_options .= " DEF:pingX=$rrd_filename:ping:AVERAGE:start=$prev_from:end=$from";
$rrd_options .= " SHIFT:pingX:$period";
$rrd_options .= " LINE1.25:pingX#CCCCCC:'Prev Ping'\t\t";
$rrd_options .= " GPRINT:pingX:AVERAGE:%6.2lf";
$rrd_options .= " GPRINT:pingX:MAX:%6.2lf 'GPRINT:pingX:AVERAGE:%6.2lf\\n'";
}

View File

@@ -23,3 +23,12 @@ $rrd_options .= " 'COMMENT:Seconds Cur Min Max Avg\\n'";
$rrd_options .= ' LINE1.25:poller#36393D:Poller';
$rrd_options .= ' GPRINT:poller:LAST:%6.2lf GPRINT:poller:MIN:%6.2lf';
$rrd_options .= " GPRINT:poller:MAX:%6.2lf 'GPRINT:poller:AVERAGE:%6.2lf\\n'";
if ($_GET['previous'] == 'yes') {
$rrd_options .= " COMMENT:' \\n'";
$rrd_options .= " DEF:pollerX=$rrd_filename:poller:AVERAGE:start=$prev_from:end=$from";
$rrd_options .= " SHIFT:pollerX:$period";
$rrd_options .= " LINE1.25:pollerX#CCCCCC:'Prev Poller'\t";
$rrd_options .= " GPRINT:pollerX:MIN:%6.2lf";
$rrd_options .= " GPRINT:pollerX:MAX:%6.2lf 'GPRINT:pollerX:AVERAGE:%6.2lf\\n'";
}