#!/usr/bin/env sh . ../../settings DEV=$1 MAX=$2 SECS=`date +%s` MODNAME=`pwd|sed -e "s/.*\///g" | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ` if [ "$DEV" = "" ] || [ "$MAX" = "" ] ; then echo "arguments missing!" ; else MAX=$( echo $MAX | awk '{print $1*1.2}' ) echo $SECS $MODNAME: setting up database $DEV.rrd for values [0..$MAX] $BINPATH/rrdtool create rrd/$DEV.rrd --step 10 \ DS:in:COUNTER:300:0:$MAX \ DS:out:COUNTER:300:0:$MAX \ RRA:AVERAGE:0:1:720 \ RRA:AVERAGE:0.3:6:2880 \ RRA:AVERAGE:0.3:60:2016 \ RRA:AVERAGE:0.3:360:1488 \ RRA:AVERAGE:0.3:4320:1460 \ RRA:MIN:0.3:6:2880 \ RRA:MIN:0.3:60:2016 \ RRA:MIN:0.3:360:1488 \ RRA:MIN:0.3:4320:1460 \ RRA:MAX:0.3:6:2880 \ RRA:MAX:0.3:60:2016 \ RRA:MAX:0.3:360:1488 \ RRA:MAX:0.3:4320:1460 fi # 2h -> 720 Werte alle 10sec # 2d = 48h -> 2880 Werte alle 1min (6*10sec) # 2w = 14d -> 2016 Werte alle 10min (60*10sec) # 2m = 62d -> 1488 Werte alle 1h (360*10sec) # 2y = 730d -> 1460 Werte alle 12h (4320*10sec)
WebSVN - hotsanic - Blame - Rev 26 - /branches/HotSaNIC-0.5.0-pre6/modules/traffic/makerrd
Català-Valencià - Catalan
Česky - Cesky
Dansk - Dansk
Dutch - Dutch
English - English
Finnish - Finnish
Français - Francais
Deutsch - German
עברית - Hebrew
Magyar - Hungarian
Bahasa Indonesia - Indonesian
Italiano - Italian
日本語 - Japanese
한국어 - Korean
Norsk - Norwegian
Polski - Polish
Português - Portuguese
Português - Brazilian Portuguese
Русский - Russian
中文 - Simplified Chinese
Slovenčina - Slovak
Slovenčina - Slovenian
Español - Spanish
Svenska - Swedish
中文 - Traditional Chinese
Türkçe - Turkish
Oëzbekcha - Uzbek
hotsanic
Subversion Repositories:
banderdyn
centos.prosek.czf
crusader
czf4bfu
czf4bfu.prosek.czf
czfcentos
czfgmap
discover
fedora.prosek.czf
freenet-router
ftth
getonlineclouds
hotsanic
internet.prosek.czf
is
mapstats
meteolinger
netmap
qos
sedlo
sedlo.prosek.czf
switches
vbtobb
vlubnt
weathermap
weatherstats
websvn
wifidashboard
wifimon
www.prosek.czf
xenstats
[
/
] [
branches/
] [
HotSaNIC-0.5.0-pre6/
] [
modules/
] [
traffic/
] [
makerrd
] - Blame information for rev
26
Line No.
Rev
Author
Line
Powered by
WebSVN
2.2.1