> I want to show data, but shade the background between 2 > timestamps monday--friday. > I have managed the basic 03:00-09:00 09:01-18:00 using > > ~/bin/rrdtool graph lpar.png -a PNG -i --start $START \ > -l 0 -u 160 -M -v "LPARs" --title "LPAR usage" \ > DEF:lpar=usage.rrd:lpar:AVERAGE \ > CDEF:drn1=LTIME,86400,%,10801,32400,LIMIT,UN,0,lpar,IF \ > CDEF:drn2=LTIME,86400,%,32401,64800,LIMIT,UN,0,lpar,IF \ > AREA:drn1#FFFFCC:"6h Devel Draining" \ > AREA:drn2#FFFF99:"6h Devel Drained\c" \ > LINE2:lpar#0000FF:"LPARs in use" \ > GPRINT:lpar:MIN:"Min\: %.0lf" \ > GPRINT:lpar:MAX:"Max\: %.0lf" \ > GPRINT:lpar:LAST:"Current\: %.0lf\c" > > *BUT* I only want it to be shaded monday-friday.
OK - It's NOT by any means pretty, but I have managed to get the effect I want using... CDEF:drn1=LTIME,172800,-,604800,%,172800,LE,0,LTIME,86400,%,10801,32400, LIMIT,UN,0,cpu,IF,IF \ CDEF:drn2=LTIME,172800,-,604800,%,172800,LE,0,LTIME,86400,%,32401,64800, LIMIT,UN,0,cpu,IF,IF \ Any kind soul want to simplify this? Andrew -- Unsubscribe mailto:[EMAIL PROTECTED] Help mailto:[EMAIL PROTECTED] Archive http://www.ee.ethz.ch/~slist/rrd-users WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi
