jablonka.czprosek.czf

crusader

Subversion Repositories:
[/] [trunk/] [statistiky/] [opt/] [statistiky/] [monitor_zebra/] [zebra_rrd_create.sh] - Blame information for rev 1

 

Line No. Rev Author Line
11simandl#!/bin/bash
2 
3PATH=/opt/rrdtool/bin:$PATH:/sbin
4 
5logdir="/var/statistiky"
6file="${logdir}/zebra.rrd"
7 
8now=`date +%s`
9 
10if [ ! -f $file ] ; then
11 # posledni hodina vsechny hodnoty
12 # posledni den prumery z deseti hodnot = 10minutove prumery
13 # posledni tyden hodinove prumery
14 rrdtool create $file --step 60 --start $now \
15 DS:count:GAUGE:120:0:U \
16 RRA:AVERAGE:0.5:1:60 \
17 RRA:AVERAGE:0.5:10:144 \
18 RRA:AVERAGE:0.5:60:168
19fi
20 

Powered by WebSVN 2.2.1