[rrd-users] adding DS values from multiple rrd files?
Joel
jbrooks at oddelement.com
Tue Aug 3 15:48:58 CEST 2010
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 <linux at thehobsons.co.uk>
Sender: rrd-users-bounces+jbrooks=oddelement.com at lists.oetiker.ch
Date: Tue, 3 Aug 2010 14:39:38
To: <rrd-users at lists.oetiker.ch>
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
rrd-users at lists.oetiker.ch
https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users
More information about the rrd-users
mailing list