[rrd-users] change the background in a graph

edstobi marc at tobien.net
Mon May 18 14:34:23 CEST 2009

I am using rrdtools to generate a graph with lines.
Now I am trying to change the background of the graph whenever a pump is
running like in the gallery 
http://oss.oetiker.ch/rrdtool/gallery/index.en.html from ACAD Network.
My pump information is in a own rrd and has only the information 0 or 1

usr/bin/rrdtool graph /var/www/temperature/3+4_day.png -s -160000
DEF:d2=/var/log/digitemp_rrd/2.rrd:temp:AVERAGE  \\ temp 1 hot
DEF:d3=/var/log/digitemp_rrd/3.rrd:temp:AVERAGE  \\ temp 2 cold
DEF:d6=/var/log/digitemp_rrd/6.rrd:temp:AVERAGE 	\\ temp 3 outside
DEF:d52=/var/log/digitemp_rrd/52.rrd:temp:AVERAGE  \\ pump on/of
LINE1:d2#0000ff:"Kamin Ruecklauf" 
LINE1:d3#FF0000:"Kamin Vorlauf" 
-h300 -w500 -y1:2 --color GRID#dddddd --color MGRID#aaaaaa HRULE:60#ababab

As you see I am trying to display the pump with AREA which is increased up
to 10, but if the outside temp is – 15 or at +30 this looks silly.
I could not figure out how this was made by ACAD Network.
Can anybody gif me some information’s

Mit freundlichen Grüßen / Best regards

Marc Tobien

View this message in context: http://n2.nabble.com/change-the-background-in-a-graph-tp2932623p2932623.html
Sent from the RRDtool Users Mailinglist mailing list archive at Nabble.com.

More information about the rrd-users mailing list