comparison adslstats.py @ 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
comparison
equal deleted inserted replaced
20:38e3804d4f80 21:8c44182a2984
283 'DEF:fecATUC=%s:fecATUC:AVERAGE' % rrdname, 283 'DEF:fecATUC=%s:fecATUC:AVERAGE' % rrdname,
284 'LINE1:fecATUC#fff384:Upstream errors', 284 'LINE1:fecATUC#fff384:Upstream errors',
285 285
286 'DEF:fecATUR=%s:fecATUR:AVERAGE' % rrdname, 286 'DEF:fecATUR=%s:fecATUR:AVERAGE' % rrdname,
287 'LINE1:fecATUR#45cfc9:Downstream errors', 287 'LINE1:fecATUR#45cfc9:Downstream errors',
288
289 'DEF:uptime=%s:uptime:AVERAGE' % rrdname,
290 'CDEF:uptimepct=uptime,10,*',
291 'LINE1:uptimepct#606060:Uptime (10\'s%)',
288 ) 292 )
289 293
290 rrdtool.graph("%s-hour-link.svg" % (graphbasename), 294 rrdtool.graph("%s-hour-link.svg" % (graphbasename),
291 '--width', '768', 295 '--width', '768',
292 '--height', '256', 296 '--height', '256',