comparison adslstats.py @ 27:607111929e2e

rrd no longer likes LINE0 so work around it
author Daniel O'Connor <darius@dons.net.au>
date Sun, 12 Aug 2018 15:59:12 +0930
parents 04874587fb6e
children 08cddcdb0db3
comparison
equal deleted inserted replaced
26:04874587fb6e 27:607111929e2e
265 'DEF:upstreammin=%s:upstream:MIN' % rrdname, 265 'DEF:upstreammin=%s:upstream:MIN' % rrdname,
266 'DEF:upstreammax=%s:upstream:MAX' % rrdname, 266 'DEF:upstreammax=%s:upstream:MAX' % rrdname,
267 'CDEF:upstreamdif=upstreammax,upstreammin,-', 267 'CDEF:upstreamdif=upstreammax,upstreammin,-',
268 'DEF:maxupstream=%s:upstreammax:AVERAGE' % rrdname, 268 'DEF:maxupstream=%s:upstreammax:AVERAGE' % rrdname,
269 269
270 'LINE0:upstreammin#000000:', 270 'LINE0.001:upstreammin#000000:',
271 'AREA:upstreamdif#00dc76::STACK', 271 'AREA:upstreamdif#00dc76::STACK',
272 'LINE1:upstream#00ff00:Upstream', 272 'LINE1:upstream#00ff00:Upstream',
273 273
274 'LINE1:maxupstream#0000ff:Upstream (maximum)', 274 'LINE1:maxupstream#0000ff:Upstream (maximum)',
275 275
277 'DEF:downstreammin=%s:downstream:MIN' % rrdname, 277 'DEF:downstreammin=%s:downstream:MIN' % rrdname,
278 'DEF:downstreammax=%s:downstream:MAX' % rrdname, 278 'DEF:downstreammax=%s:downstream:MAX' % rrdname,
279 'CDEF:downstreamdif=downstreammax,downstreammin,-', 279 'CDEF:downstreamdif=downstreammax,downstreammin,-',
280 'DEF:maxdownstream=%s:downstreammax:AVERAGE' % rrdname, 280 'DEF:maxdownstream=%s:downstreammax:AVERAGE' % rrdname,
281 281
282 'LINE0:downstreammin#000000:', 282 'LINE0.001:downstreammin#000000:',
283 'AREA:downstreamdif#ff8686::STACK', 283 'AREA:downstreamdif#ff8686::STACK',
284 'LINE1:downstream#ff0000:Downstream', 284 'LINE1:downstream#ff0000:Downstream',
285 285
286 'LINE1:maxdownstream#000000:Downstream (maximum)' 286 'LINE1:maxdownstream#000000:Downstream (maximum)'
287 ) 287 )
296 'DEF:nmupmin=%s:nmup:MIN' % rrdname, 296 'DEF:nmupmin=%s:nmup:MIN' % rrdname,
297 'DEF:nmupmax=%s:nmup:MAX' % rrdname, 297 'DEF:nmupmax=%s:nmup:MAX' % rrdname,
298 298
299 'CDEF:nmupdif=nmupmax,nmupmin,-', 299 'CDEF:nmupdif=nmupmax,nmupmin,-',
300 300
301 'LINE0:nmupmin#000000:', 301 'LINE0.001:nmupmin#000000:',
302 'AREA:nmupdif#5c5cff::STACK', 302 'AREA:nmupdif#5c5cff::STACK',
303 'LINE1:nmup#0000ff:Noise Margin - Up', 303 'LINE1:nmup#0000ff:Noise Margin - Up',
304 304
305 'DEF:nmdown=%s:nmdown:AVERAGE' % rrdname, 305 'DEF:nmdown=%s:nmdown:AVERAGE' % rrdname,
306 'DEF:nmdownmin=%s:nmdown:MIN' % rrdname, 306 'DEF:nmdownmin=%s:nmdown:MIN' % rrdname,
307 'DEF:nmdownmax=%s:nmdown:MAX' % rrdname, 307 'DEF:nmdownmax=%s:nmdown:MAX' % rrdname,
308 308
309 'CDEF:nmdowndif=nmdownmax,nmdownmin,-', 309 'CDEF:nmdowndif=nmdownmax,nmdownmin,-',
310 310
311 'LINE0:nmdownmin#000000:', 311 'LINE0.001:nmdownmin#000000:',
312 'AREA:nmdowndif#009a00::STACK', 312 'AREA:nmdowndif#009a00::STACK',
313 'LINE1:nmdown#00ff00:Noise Margin - Down', 313 'LINE1:nmdown#00ff00:Noise Margin - Down',
314 314
315 'DEF:attenup=%s:attenup:AVERAGE' % rrdname, 315 'DEF:attenup=%s:attenup:AVERAGE' % rrdname,
316 'DEF:attenupmin=%s:attenup:MIN' % rrdname, 316 'DEF:attenupmin=%s:attenup:MIN' % rrdname,
317 'DEF:attenupmax=%s:attenup:MAX' % rrdname, 317 'DEF:attenupmax=%s:attenup:MAX' % rrdname,
318 318
319 'CDEF:attenupdif=attenupmax,attenupmin,-', 319 'CDEF:attenupdif=attenupmax,attenupmin,-',
320 320
321 'LINE0:attenupmin#000000:', 321 'LINE0.001:attenupmin#000000:',
322 'AREA:attenupdif#f98100::STACK', 322 'AREA:attenupdif#f98100::STACK',
323 'LINE1:attenup#ff0000:Attenuation - Up', 323 'LINE1:attenup#ff0000:Attenuation - Up',
324 324
325 'DEF:attendown=%s:attendown:AVERAGE' % rrdname, 325 'DEF:attendown=%s:attendown:AVERAGE' % rrdname,
326 'DEF:attendownmin=%s:attendown:MIN' % rrdname, 326 'DEF:attendownmin=%s:attendown:MIN' % rrdname,
327 'DEF:attendownmax=%s:attendown:MAX' % rrdname, 327 'DEF:attendownmax=%s:attendown:MAX' % rrdname,
328 328
329 'CDEF:attendowndif=attendownmax,attendownmin,-', 329 'CDEF:attendowndif=attendownmax,attendownmin,-',
330 330
331 'LINE0:attendownmin#000000:', 331 'LINE0.001:attendownmin#000000:',
332 'AREA:attendowndif#aaaaaa::STACK', 332 'AREA:attendowndif#aaaaaa::STACK',
333 'LINE1:attendown#000000:Attenuation - Down', 333 'LINE1:attendown#000000:Attenuation - Down',
334 334
335 'DEF:powerup=%s:powerup:AVERAGE' % rrdname, 335 'DEF:powerup=%s:powerup:AVERAGE' % rrdname,
336 'DEF:powerupmin=%s:powerup:MIN' % rrdname, 336 'DEF:powerupmin=%s:powerup:MIN' % rrdname,
337 'DEF:powerupmax=%s:powerup:MAX' % rrdname, 337 'DEF:powerupmax=%s:powerup:MAX' % rrdname,
338 338
339 'CDEF:powerupdif=powerupmax,powerupmin,-', 339 'CDEF:powerupdif=powerupmax,powerupmin,-',
340 340
341 'LINE0:powerupmin#000000:', 341 'LINE0.001:powerupmin#000000:',
342 'AREA:powerupdif#804007::STACK', 342 'AREA:powerupdif#804007::STACK',
343 'LINE1:powerup#ff800e:Power - Up (dBm)', 343 'LINE1:powerup#ff800e:Power - Up (dBm)',
344 344
345 'DEF:powerdown=%s:powerdown:AVERAGE' % rrdname, 345 'DEF:powerdown=%s:powerdown:AVERAGE' % rrdname,
346 'DEF:powerdownmin=%s:powerdown:MIN' % rrdname, 346 'DEF:powerdownmin=%s:powerdown:MIN' % rrdname,
347 'DEF:powerdownmax=%s:powerdown:MAX' % rrdname, 347 'DEF:powerdownmax=%s:powerdown:MAX' % rrdname,
348 348
349 'CDEF:powerdowndif=powerdownmax,powerdownmin,-', 349 'CDEF:powerdowndif=powerdownmax,powerdownmin,-',
350 350
351 'LINE0:powerdownmin#000000:', 351 'LINE0.001:powerdownmin#000000:',
352 'AREA:powerdowndif#604872::STACK', 352 'AREA:powerdowndif#604872::STACK',
353 'LINE1:powerdown#c090e5:Power - Down (dBm)', 353 'LINE1:powerdown#c090e5:Power - Down (dBm)',
354 354
355 'DEF:uptime=%s:uptime:AVERAGE' % rrdname, 355 'DEF:uptime=%s:uptime:AVERAGE' % rrdname,
356 'CDEF:uptimepct=uptime,10,*', 356 'CDEF:uptimepct=uptime,10,*',