comparison adslstats.py @ 20:38e3804d4f80

Plot FEC errors (probably, hard to test)
author Daniel O'Connor <darius@dons.net.au>
date Mon, 23 May 2016 13:44:49 +0930
parents 5bec78c876db
children 8c44182a2984
comparison
equal deleted inserted replaced
19:5bec78c876db 20:38e3804d4f80
217 signalargs = ( 217 signalargs = (
218 '-a', 'SVG', 218 '-a', 'SVG',
219 '--vertical-label', 'dB', 219 '--vertical-label', 'dB',
220 '--slope-mode', 220 '--slope-mode',
221 '-l', '0', 221 '-l', '0',
222 '--font', 'LEGEND:7',
223 222
224 'DEF:nmup=%s:nmup:AVERAGE' % rrdname, 223 'DEF:nmup=%s:nmup:AVERAGE' % rrdname,
225 'DEF:nmupmin=%s:nmup:MIN' % rrdname, 224 'DEF:nmupmin=%s:nmup:MIN' % rrdname,
226 'DEF:nmupmax=%s:nmup:MAX' % rrdname, 225 'DEF:nmupmax=%s:nmup:MAX' % rrdname,
227 226
278 'CDEF:powerdowndif=powerdownmax,powerdownmin,-', 277 'CDEF:powerdowndif=powerdownmax,powerdownmin,-',
279 278
280 'LINE0:powerdownmin#000000:', 279 'LINE0:powerdownmin#000000:',
281 'AREA:powerdowndif#604872::STACK', 280 'AREA:powerdowndif#604872::STACK',
282 'LINE1:powerdown#c090e5:Power - Down (dBm)', 281 'LINE1:powerdown#c090e5:Power - Down (dBm)',
282
283 'DEF:fecATUC=%s:fecATUC:AVERAGE' % rrdname,
284 'LINE1:fecATUC#fff384:Upstream errors',
285
286 'DEF:fecATUR=%s:fecATUR:AVERAGE' % rrdname,
287 'LINE1:fecATUR#45cfc9:Downstream errors',
283 ) 288 )
284 289
285 rrdtool.graph("%s-hour-link.svg" % (graphbasename), 290 rrdtool.graph("%s-hour-link.svg" % (graphbasename),
286 '--width', '768', 291 '--width', '768',
287 '--height', '256', 292 '--height', '256',