-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathrrdgraph-monthly
15 lines (15 loc) · 2.78 KB
/
rrdgraph-monthly
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh
START="--start -604800 -e -1800"
#PRECISION="HOUR:6:DAY:1:DAY:1:1:%d"
PRECISION="-x HOUR:6:DAY:1:DAY:1:0:%a"
rrdtool graph update1-monthly.png $START $PRECISION --title="Update Server 1" DEF:connect_time=update1.rrd:connect_time:AVERAGE CDEF:timeout=connect_time,INF,EQ,INF,UNKN,IF LINE2:connect_time#00a000:"Connection Time (ms)" AREA:timeout#FF0000:"No answer"
rrdtool graph update2-monthly.png $START $PRECISION --title="Update Server 2" DEF:connect_time=update2.rrd:connect_time:AVERAGE CDEF:timeout=connect_time,INF,EQ,INF,UNKN,IF LINE2:connect_time#00a000:"Connection Time (ms)" AREA:timeout#FF0000:"No answer"
rrdtool graph update3-monthly.png $START $PRECISION --title="Update Server 3" DEF:connect_time=update3.rrd:connect_time:AVERAGE CDEF:timeout=connect_time,INF,EQ,INF,UNKN,IF LINE2:connect_time#00a000:"Connection Time (ms)" AREA:timeout#FF0000:"No answer"
rrdtool graph update4-monthly.png $START $PRECISION --title="Update Server 4" DEF:connect_time=update4.rrd:connect_time:AVERAGE CDEF:timeout=connect_time,INF,EQ,INF,UNKN,IF LINE2:connect_time#00a000:"Connection Time (ms)" AREA:timeout#FF0000:"No answer"
rrdtool graph update5-monthly.png $START $PRECISION --title="Update Server 5" DEF:connect_time=update5.rrd:connect_time:AVERAGE CDEF:timeout=connect_time,INF,EQ,INF,UNKN,IF LINE2:connect_time#00a000:"Connection Time (ms)" AREA:timeout#FF0000:"No answer"
rrdtool graph login-monthly.png $START $PRECISION --title="Login Server" DEF:connect_time=login.rrd:connect_time:AVERAGE CDEF:timeout=connect_time,INF,EQ,INF,UNKN,IF LINE2:connect_time#00a000:"Connection Time (ms)" AREA:timeout#FF0000:"No answer"
rrdtool graph bartz-monthly.png $START $PRECISION --title="Bartz" DEF:connect_time=bartz.rrd:connect_time:AVERAGE CDEF:timeout=connect_time,INF,EQ,INF,UNKN,IF LINE2:connect_time#00a000:"Connection Time (ms)" AREA:timeout#FF0000:"No answer"
rrdtool graph sieghardt-monthly.png $START $PRECISION --title="Sieghardt" DEF:connect_time=sieghardt.rrd:connect_time:AVERAGE CDEF:timeout=connect_time,INF,EQ,INF,UNKN,IF LINE2:connect_time#00a000:"Connection Time (ms)" AREA:timeout#FF0000:"No answer"
rrdtool graph kain-monthly.png $START $PRECISION --title="Kain" DEF:connect_time=kain.rrd:connect_time:AVERAGE CDEF:timeout=connect_time,INF,EQ,INF,UNKN,IF LINE2:connect_time#00a000:"Connection Time (ms)" AREA:timeout#FF0000:"No answer"
rrdtool graph lionna-monthly.png $START $PRECISION --title="Lionna" DEF:connect_time=lionna.rrd:connect_time:AVERAGE CDEF:timeout=connect_time,INF,EQ,INF,UNKN,IF LINE2:connect_time#00a000:"Connection Time (ms)" AREA:timeout#FF0000:"No answer"
rrdtool graph erica-monthly.png $START $PRECISION --title="Erica" DEF:connect_time=erica.rrd:connect_time:AVERAGE CDEF:timeout=connect_time,INF,EQ,INF,UNKN,IF LINE2:connect_time#00a000:"Connection Time (ms)" AREA:timeout#FF0000:"No answer"