Dropped packets on negative axis
Tested on: 1.4.21
This minor change allows the dropped packets to be seen in the negative y-axis instead:

- You must have applied the "link quality addition" modification first (obviously?)
- Edit /usr/local/bin/makegraphs alter the procedure updatelqgraph as below:
sub updatelqgraph {
my $period = $_[0];
RRDs::graph ("$graphs/lq-$period.png",
"--start", "-1$period", "-aPNG", "-i", "-z",
"--alt-y-grid", "-w 600", "-h 100", "-u 70",
"-t $tr{'lq'} ($tr{'graph per'} $tr{$period})",
"--lazy",
"--color", "SHADEA#EAE9EE",
"--color", "SHADEB#EAE9EE",
"--color", "BACK#EAE9EE",
"-v pkt loss -% / ms",
"DEF:roundtrip=$rrdlog/lq.rrd:roundtrip:AVERAGE",
"DEF:loss=$rrdlog/lq.rrd:loss:AVERAGE",
"CDEF:roundavg=roundtrip,PREV(roundtrip),+,1.05,/",
"CDEF:lossavg=loss,PREV(loss),+,2,/",
"CDEF:lossd=lossavg,-1,*",
"CDEF:loss10=loss,-10,*",
"CDEF:r0=roundtrip,20,MIN",
"CDEF:r1=roundtrip,50,MIN",
"CDEF:r2=roundtrip,80,MIN",
"CDEF:r3=roundtrip,100,MIN",
"AREA:roundtrip#EE7000:>100 ms",
"AREA:r3#D88E1B:80-100 ms",
"AREA:r2#B9B63F:50-80 ms",
"AREA:r1#99E064:20-50 ms",
"AREA:r0#80FF80:<20 ms",
"AREA:lossd#FFAA33:Ave Packet loss %",
"AREA:loss10#FF0000:Packet loss %\\j",
"LINE1:roundtrip#707070:",
"GPRINT:roundtrip:MAX:$tr{'maximal'} $tr{'linkqrt'}\\:%3.2lf ms",
"GPRINT:roundtrip:AVERAGE:$tr{'average'} $tr{'linkqrt'}\\:%3.2lf ms",
"GPRINT:roundtrip:LAST:$tr{'current'} $tr{'linkqrt'}\\:%3.2lf ms\\j",
"GPRINT:loss:MAX:$tr{'maximal'} $tr{'linkqls'}\\:%3.2lf%%",
"GPRINT:loss:AVERAGE:$tr{'average'} $tr{'linkqls'}\\:%3.2lf%%",
"GPRINT:loss:LAST:$tr{'current'} $tr{'linkqls'}\\:%3.2lf%%\\j"
);
$ERROR = RRDs::error;
print "Error in RRD::graph for Link Quality: $ERROR\n" if $ERROR;
}
Job done
This page has been viewed 614 times since Nov 2009 since Nov 2009.
Previous page: Link Quality
Next page: tidier text
Print this page