Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
31 lines (29 sloc) 1.15 KB
rrd=/var/lib/htb_collect/borrowed.rrd
rrdtool graph borrowed-1hour.png -s -1h \
-w 600 -h 200 \
-t "Borrowed tokens for the last hour on $(hostname)" \
"DEF:interactive=$rrd:100:AVERAGE" \
'LINE2:interactive#ffe400:interactive:' \
'GPRINT:interactive:MAX:\tmax = %6.2lf%Sbps' \
'GPRINT:interactive:LAST:\tlast = %6.2lf%Sbps' \
'GPRINT:interactive:AVERAGE:\tavg = %6.2lf%Sbps\n' \
"DEF:tcp_acks=$rrd:200:AVERAGE" \
'LINE2:tcp_acks#b535ff:tcp_acks:' \
'GPRINT:tcp_acks:MAX:\tmax = %6.2lf%Sbps' \
'GPRINT:tcp_acks:LAST:\tlast = %6.2lf%Sbps' \
'GPRINT:tcp_acks:AVERAGE:\tavg = %6.2lf%Sbps\n' \
"DEF:ssh=$rrd:300:AVERAGE" \
'LINE2:ssh#1b7b16:ssh:' \
'GPRINT:ssh:MAX:\t\tmax = %6.2lf%Sbps' \
'GPRINT:ssh:LAST:\tlast = %6.2lf%Sbps' \
'GPRINT:ssh:AVERAGE:\tavg = %6.2lf%Sbps\n' \
"DEF:http_s=$rrd:400:AVERAGE" \
'LINE2:http_s#ff0000:http_s:' \
'GPRINT:http_s:MAX:\tmax = %6.2lf%Sbps' \
'GPRINT:http_s:LAST:\tlast = %6.2lf%Sbps' \
'GPRINT:http_s:AVERAGE:\tavg = %6.2lf%Sbps\n' \
"DEF:default=$rrd:999:AVERAGE" \
'LINE2:default#bcdd94:default:' \
'GPRINT:default:MAX:\tmax = %6.2lf%Sbps' \
'GPRINT:default:LAST:\tlast = %6.2lf%Sbps' \
'GPRINT:default:AVERAGE:\tavg = %6.2lf%Sbps\n'