diff 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
line wrap: on
line diff
--- a/adslstats.py	Mon May 23 11:52:50 2016 +0930
+++ b/adslstats.py	Mon May 23 13:44:49 2016 +0930
@@ -219,7 +219,6 @@
         '--vertical-label', 'dB',
         '--slope-mode',
         '-l', '0',
-        '--font', 'LEGEND:7',
 
         'DEF:nmup=%s:nmup:AVERAGE' % rrdname,
         'DEF:nmupmin=%s:nmup:MIN' % rrdname,
@@ -280,6 +279,12 @@
         'LINE0:powerdownmin#000000:',
         'AREA:powerdowndif#604872::STACK',
         'LINE1:powerdown#c090e5:Power - Down (dBm)',
+
+        'DEF:fecATUC=%s:fecATUC:AVERAGE' % rrdname,
+        'LINE1:fecATUC#fff384:Upstream errors',
+
+        'DEF:fecATUR=%s:fecATUR:AVERAGE' % rrdname,
+        'LINE1:fecATUR#45cfc9:Downstream errors',
         )
 
     rrdtool.graph("%s-hour-link.svg" % (graphbasename),