Thanks guys! I think the part I'm struggling with is how to define the CDEF for the "total" variable inside a php foreach loop. I get errors about the CDEF being reused.
Anyone out there doing rrdtool graphing with php? -----Original Message----- From: Simon Hobson <[email protected]> Sender: [email protected] Date: Tue, 3 Aug 2010 14:39:38 To: <[email protected]> Subject: Re: [rrd-users] adding DS values from multiple rrd files? Joel Brooks wrote: >right now, the graph (a stacked graph) shows a different band for >each server and the legend displays the text "<server name> <X> >messages in the queue". > >but how can i add up all the values so i can print "total <X> >messages in the queue"? If a, b, c, d, ... are the totals for each server, then : total=a,b,+,c,+,d,+, ... Then print total -- Simon Hobson Visit http://www.magpiesnestpublishing.co.uk/ for books by acclaimed author Gladys Hobson. Novels - poetry - short stories - ideal as Christmas stocking fillers. Some available as e-books. _______________________________________________ rrd-users mailing list [email protected] https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users _______________________________________________ rrd-users mailing list [email protected] https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users
