jablonka.czprosek.czf

crusader

Subversion Repositories:
[/] [trunk/] [statistiky/] [opt/] [statistiky/] [monitor_zebra/] [zebra_rrd_create.sh] - Rev 3 Go to most recent revision

Compare with Previous - Blame - Download


#!/bin/bash

PATH=/opt/rrdtool/bin:$PATH:/sbin

logdir="/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 prumery
    rrdtool 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:168
fi


Powered by WebSVN 2.2.1