aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNils Schneider <nils@nilsschneider.net>2014-02-11 11:19:53 +0100
committerNils Schneider <nils@nilsschneider.net>2014-02-11 11:19:53 +0100
commit35f42dbcf1d6eafb6b0665b0a6ff9dcef75ed416 (patch)
tree5747d19c919ad58f5601cb5bb07e08b763c17354
parent8c0e367f3d5d7b1b68125f4c9a2052f04a28d09e (diff)
rrd: saner RRAs
-rwxr-xr-xrrd.py14
1 files changed, 10 insertions, 4 deletions
diff --git a/rrd.py b/rrd.py
index e107f4c..7ca40d6 100755
--- a/rrd.py
+++ b/rrd.py
@@ -79,10 +79,16 @@ class rrd:
,'--start',str(round(self.currentTimeInt - 60))
,'--step' , '60'
,'DS:upstate:GAUGE:120:0:1'
- ,'RRA:LAST:0:1:44640'
- # Number of client available
- ,'DS:clients:GAUGE:120:0:U'
- ,'RRA:LAST:0:1:44640'
+ ,'RRA:AVERAGE:0.5:1:120'
+ ,'RRA:AVERAGE:0.5:5:1440'
+ ,'RRA:AVERAGE:0.5:60:720'
+ ,'RRA:AVERAGE:0.5:720:730'
+ # Number of connected clients
+ ,'DS:clients:GAUGE:120:0:200'
+ ,'RRA:AVERAGE:0.5:1:120'
+ ,'RRA:AVERAGE:0.5:5:1440'
+ ,'RRA:AVERAGE:0.5:60:720'
+ ,'RRA:AVERAGE:0.5:720:730'
]
subprocess.check_output(args)