mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
- Added a setting 'rrdgraph_real_95th' to display the real 95th % based on the highest of both data points.
- Currently only enabled on port bits. git-svn-id: http://www.observium.org/svn/observer/trunk@2395 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@ -37,6 +37,11 @@ $rrd_options .= " CDEF:doutbits_max=doutoctets_max,8,*";
|
||||
$rrd_options .= " CDEF:inbits=inoctets,8,*";
|
||||
$rrd_options .= " CDEF:inbits_max=inoctets_max,8,*";
|
||||
|
||||
if ($config['rrdgraph_real_95th']) {
|
||||
$rrd_options .= " CDEF:highbits=inoctets,outoctets,MAX,8,*";
|
||||
$rrd_options .= " VDEF:95thhigh=highbits,95,PERCENT";
|
||||
}
|
||||
|
||||
$rrd_options .= " VDEF:totin=inoctets,TOTAL";
|
||||
$rrd_options .= " VDEF:totout=outoctets,TOTAL";
|
||||
$rrd_options .= " VDEF:tot=octets,TOTAL";
|
||||
@ -60,6 +65,12 @@ $rrd_options .= " GPRINT:outbits:LAST:%6.2lf%s";
|
||||
$rrd_options .= " GPRINT:outbits:AVERAGE:%6.2lf%s";
|
||||
$rrd_options .= " GPRINT:outbits_max:MAX:%6.2lf%s";
|
||||
$rrd_options .= " GPRINT:95thout:%6.2lf%s\\\\n";
|
||||
|
||||
if ($config['rrdgraph_real_95th']) {
|
||||
$rrd_options .= " HRULE:95thhigh#FF0000:\"Highest\"";
|
||||
$rrd_options .= " GPRINT:95thhigh:\"%30.2lf%s\\n\"";
|
||||
}
|
||||
|
||||
$rrd_options .= " GPRINT:tot:'Total %6.2lf%s'";
|
||||
$rrd_options .= " GPRINT:totin:'(In %6.2lf%s'";
|
||||
$rrd_options .= " GPRINT:totout:'Out %6.2lf%s)\\\\l'";
|
||||
|
Reference in New Issue
Block a user