rrd_graph.sh 1.34 KB
Newer Older
's avatar
committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
RRD_DIR=/var/lib/rrd

rrdtool graph abw-L4-900.png --width 350 --height 250 \
	--end now --start end-900s \
	--slope-mode --interlaced --vertical-label "out    Mb/s    in" \
	--title "L4 protocols, 1 second averages" -X 0 \
	DEF:all_in=$RRD_DIR/jra1-1.cesnet.cz-dev_dag0-0-1-all.rrd:mbps:AVERAGE \
	DEF:all_in_max=/var/lib/rrd/jra1-1.cesnet.cz-dev_dag0-0-1-all.rrd:mbps:MAX:step=60 \
	DEF:tcp_in=/var/lib/rrd/jra1-1.cesnet.cz-dev_dag0-0-1-tcp.rrd:mbps:AVERAGE \
	DEF:udp_in=/var/lib/rrd/jra1-1.cesnet.cz-dev_dag0-0-1-udp.rrd:mbps:AVERAGE \
	DEF:all_out=/var/lib/rrd/jra1-2.cesnet.cz-dev_dag0-0-2-all.rrd:mbps:AVERAGE \
	DEF:all_out_max=/var/lib/rrd/jra1-2.cesnet.cz-dev_dag0-0-2-all.rrd:mbps:MAX:step=60 \
	DEF:tcp_out=/var/lib/rrd/jra1-2.cesnet.cz-dev_dag0-0-2-tcp.rrd:mbps:AVERAGE \
	DEF:udp_out=/var/lib/rrd/jra1-2.cesnet.cz-dev_dag0-0-2-udp.rrd:mbps:AVERAGE \
	CDEF:all_out_neg=all_out,-1,* \
	CDEF:all_out_neg_max=all_out_max,-1,* \
	CDEF:tcp_out_neg=tcp_out,-1,* \
	CDEF:udp_out_neg=udp_out,-1,* \
	LINE1:all_in_max#0000FF:"Max in (60 sec)" \
	AREA:all_in#FFFF00:"Other in" \
	LINE:0 \
	AREA:tcp_in#00FF00:"TCP in":STACK \
	AREA:udp_in#FF0000:"UDP in":STACK \
	LINE1:all_out_neg_max#0000FF:"Max out (60 sec)    " \
	AREA:all_out_neg#FFFF0060:"Other out" \
	LINE:0 \
	AREA:tcp_out_neg#00FF0060:"TCP out":STACK \
	AREA:udp_out_neg#FF000060:"UDP out":STACK \
	LINE:0#000000