#!/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 WebSVN - crusader - Blame - Rev 1 - /trunk/statistiky/opt/statistiky/monitor_zebra/zebra_rrd_create.sh
  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

Powered by WebSVN 2.2.1