![]() ![]() |
crusader |
Subversion Repositories: |
Compare with Previous - Blame - Download
#!/bin/bashPATH=/opt/rrdtool/bin:$PATH:/sbinlogdir="/var/statistiky"file="${logdir}/zebra.rrd"now=`date +%s`if [ ! -f $file ] ; then# posledni hodina vsechny hodnoty# posledni den prumery z deseti hodnot = 10minutove prumery# posledni tyden hodinove prumeryrrdtool create $file --step 60 --start $now \DS:count:GAUGE:120:0:U \RRA:AVERAGE:0.5:1:60 \RRA:AVERAGE:0.5:10:144 \RRA:AVERAGE:0.5:60:168fi