fix MEF URL
[public/mirror.git] / rrdtool / rrdgraph-yearly.sh
1 #!/bin/sh
2 /usr/bin/rrdtool graph /mirror/root/stats_yearly.png \
3 -s -1y \
4 --imgformat=PNG \
5 --title='Mirror Traffic' \
6 --base=1000 \
7 --height=120 \
8 --width=600 \
9 --alt-autoscale-max \
10 --lower-limit=0 \
11 --vertical-label='bits per second' \
12 --slope-mode \
13 --font TITLE:10: \
14 --font AXIS:8: \
15 --font LEGEND:8: \
16 --font UNIT:8: \
17 DEF:a="/var/rrdtool/cogent.rrd":snmp_oid:AVERAGE \
18 DEF:b="/var/rrdtool/orion.rrd":snmp_oid:AVERAGE \
19 DEF:c="/var/rrdtool/campus.rrd":snmp_oid:AVERAGE \
20 CDEF:cdefa=a,8,* \
21 CDEF:cdefe=b,8,* \
22 CDEF:cdefi=c,8,* \
23 CDEF:cdefbc=TIME,1318318854,GT,a,a,UN,0,a,IF,IF,TIME,1318318854,GT,b,b,UN,0,b,IF,IF,TIME,1318318854,GT,c,c,UN,0,c,IF,IF,+,+,8,* \
24 AREA:cdefa#157419FF:"Cogent"  \
25 GPRINT:cdefa:LAST:"Current\:%8.2lf%s"  \
26 GPRINT:cdefa:AVERAGE:"Average\:%8.2lf%s"  \
27 GPRINT:cdefa:MAX:"Maximum\:%8.2lf%s\n"  \
28 AREA:cdefe#00CF00FF:"Orion":STACK \
29 GPRINT:cdefe:LAST:" Current\:%8.2lf%s"  \
30 GPRINT:cdefe:AVERAGE:"Average\:%8.2lf%s"  \
31 GPRINT:cdefe:MAX:"Maximum\:%8.2lf%s\n"  \
32 AREA:cdefi#EE5019FF:"Campus":STACK \
33 GPRINT:cdefi:LAST:"Current\:%8.2lf%s"  \
34 GPRINT:cdefi:AVERAGE:"Average\:%8.2lf%s"  \
35 GPRINT:cdefi:MAX:"Maximum\:%8.2lf%s\n"  \
36 LINE1:cdefbc#000000FF:"Total"  \
37 GPRINT:cdefbc:LAST:" Current\:%8.2lf%s"  \
38 GPRINT:cdefbc:AVERAGE:"Average\:%8.2lf%s"  \
39 GPRINT:cdefbc:MAX:"Maximum\:%8.2lf%s\n" >/dev/null 2>/dev/null