changeset 21:8c44182a2984

Plot uptime.
author Daniel O'Connor <darius@dons.net.au>
date Mon, 23 May 2016 14:54:31 +0930
parents 38e3804d4f80
children a53f90508a06
files adslstats.py
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/adslstats.py	Mon May 23 13:44:49 2016 +0930
+++ b/adslstats.py	Mon May 23 14:54:31 2016 +0930
@@ -285,6 +285,10 @@
 
         'DEF:fecATUR=%s:fecATUR:AVERAGE' % rrdname,
         'LINE1:fecATUR#45cfc9:Downstream errors',
+
+        'DEF:uptime=%s:uptime:AVERAGE' % rrdname,
+        'CDEF:uptimepct=uptime,10,*',
+        'LINE1:uptimepct#606060:Uptime (10\'s%)',
         )
 
     rrdtool.graph("%s-hour-link.svg" % (graphbasename),