rivers/plot.sh

13 lines
513 B
Bash
Raw Normal View History

2014-02-01 13:19:34 +00:00
DATAPATH=/var/lib/munin/localdomain
OUTPATH=~/public_html
rrdtool graph $OUTPATH/river-canterbury.png \
2014-02-01 13:20:02 +00:00
--end now --start end-4w \
2014-02-01 13:19:34 +00:00
--height 400 --width 1200 \
DEF:r17_1135=$DATAPATH/localhost.localdomain-river_levels_17-river_level_1135-g.rrd:42:AVERAGE \
DEF:r17_1143=$DATAPATH/localhost.localdomain-river_levels_17-river_level_1143-g.rrd:42:AVERAGE \
LINE1:r17_1135#0000FF:"Stour at Chartham (1135)\l" \
LINE1:r17_1143#00FF00:"Stour at Vauxhall Bridge (1143)\l" \
2014-02-01 13:20:02 +00:00
HRULE:0.8#000000 \
>/dev/null