mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
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:
@@ -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'";
|
||||
}
|
||||
|
@@ -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'";
|
||||
}
|
||||
|
Reference in New Issue
Block a user