jablonka.czprosek.czf

hotsanic

Subversion Repositories:
[/] [branches/] [HotSaNIC-0.5.0-pre6/] [modules/] [netstat/] [makerrd] - Blame information for rev 33

 

Line No. Rev Author Line
11simandl#!/usr/bin/env sh
2 
3. ../../settings
4 
5DEV=$1
6 
7OS_TYPE=`uname`
8 
9SECS=`date +%s`
10 
11MODNAME=`pwd|sed -e "s/.*\///g" | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`
12 
13if [ "$DEV" = "" ] ; then echo "arguments missing!" ; else
14 
15 echo $SECS $MODNAME: setting up database $DEV.rrd for values [0..unknown]
16 
17 if [ $OS_TYPE = "Linux" ]; then
18 $BINPATH/rrdtool create rrd/$DEV.rrd --step 10 \
19 DS:unknown:GAUGE:300:0:U \
20 DS:established:GAUGE:300:0:U \
21 DS:synsent:GAUGE:300:0:U \
22 DS:synrecv:GAUGE:300:0:U \
23 DS:finwait1:GAUGE:300:0:U \
24 DS:finwait2:GAUGE:300:0:U \
25 DS:timewait:GAUGE:300:0:U \
26 DS:close:GAUGE:300:0:U \
27 DS:closewait:GAUGE:300:0:U \
28 DS:lastack:GAUGE:300:0:U \
29 DS:listen:GAUGE:300:0:U \
30 DS:closing:GAUGE:300:0:U \
31 RRA:AVERAGE:0:1:720 \
32 RRA:AVERAGE:0.3:6:2880 \
33 RRA:AVERAGE:0.3:60:2016 \
34 RRA:AVERAGE:0.3:360:1488 \
35 RRA:AVERAGE:0.3:4320:1460 \
36 RRA:MIN:0.3:6:2880 \
37 RRA:MIN:0.3:60:2016 \
38 RRA:MIN:0.3:360:1488 \
39 RRA:MIN:0.3:4320:1460 \
40 RRA:MAX:0.3:6:2880 \
41 RRA:MAX:0.3:60:2016 \
42 RRA:MAX:0.3:360:1488 \
43 RRA:MAX:0.3:4320:1460
44 
45 fi
46 fi
47 
48# 2h -> 720 Werte alle 10sec
49# 2d = 48h -> 2880 Werte alle 1min (6*10sec)
50# 2w = 14d -> 2016 Werte alle 10min (60*10sec)
51# 2m = 62d -> 1488 Werte alle 1h (360*10sec)
52# 2y = 730d -> 1460 Werte alle 12h (4320*10sec)

Powered by WebSVN 2.2.1