[rrd-users] Custom CDEF for Sum is Missing

Yurek, Matt Matt.Yurek at webloyalty.com
Tue Jul 6 14:58:19 MEST 2004


I'm trying to generate a graph of hits per day across an entire server
cluster.  Three servers handle the traffic to this one site, and the
hits per day per server are located in 3 RRDs.

When I generate the graph with the following command, if one server is
missing data (i.e. it was down for a day for maintainance, etc), the
entire day is left blank, even though 2 out of 3 RRDs have valid data.

I've tried a bunch of things like putting IF's in the CDEF line, and
have tried googling for it, to no avail.

Any assistance would be appreciated.

--
   rrdtool graph images/hitsPerMonth.gif 
	--start -31556926
	--height=200
	--lower-limit=0
	DEF:r1=rrds/server1-siteHits.rrd:data:LAST
	DEF:r2=rrds/server2-siteHits.rrd:data:LAST
	DEF:r3=rrds/server3-siteHits.rrd:data:LAST
	CDEF:custom=r3,r2,r1,+,+ AREA:custom#339999
	GPRINT:custom:AVERAGE:"Average\: %2.2lf"
	GPRINT:custom:MIN:"Minimum\: %2.2lf"
	GPRINT:custom:MAX:"Maximum\: %2.2lf \j"
--

Thanks,
Matt


This transmission may contain information that is privileged, confidential and exempt from disclosure under applicable law.  If you, rrd-users at list.ee.ethz.ch, are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein (including any reliance thereon) is STRICTLY PROHIBITED.  If you received this transmission in error, please immediately contact the sender and destroy the material in its entirety, whether in electronic or hard copy format.


--
Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
Help        mailto:rrd-users-request at list.ee.ethz.ch?subject=help
Archive     http://www.ee.ethz.ch/~slist/rrd-users
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



More information about the rrd-users mailing list