[xymon] Possible to sum rrd into one graph ?
tseglard at wat.tv
Fri Nov 19 11:04:08 CET 2010
I failed to achieve this. Actually, it doesn't display any graph at all. Hence, I send this new message. What is the best solution to be able to make ONE graph displaying the sum of all bandwidth consumed by my servers delivering media content ? I done this very simply with Munin so I'm very disapointed that its impossible to make it as simple with Xymon.
Thanks for help.
De : Stef Coene [mailto:stef.coene at docum.org]
Envoyé : vendredi 27 août 2010 13:50
À : xymon at xymon.com
Objet : Re: [xymon] Possible to sum rrd into one graph ?
On Friday 27 August 2010, SEGLARD, Thomas wrote:
> But, my mistake, this is only part of answer and I don't exactly write what
> I wanted to know. What I want is a way to sum the RRDs from different
> servers and corresponding to the graph definition « ifstat ». The main
> problem is that the RRDs are not in the same place/directory and thus I
> have no way to tell rrdtool where to get these RRDs. This is the main
> problem and why I required some help J
> I could do some scrtipt which sync on a regular basis these RRDs into one
> server directory. It's not very elegant (but I think this will work !). In
> a future release, maybe it will be possible to use the Metrics reports to
> do all the maths we want with different RRDs ? ;)
Easy, make a subdirectory like graph1 and in that subdirectory add symlinks to
the different rrd files. You can give the symlink an other name like
graph/vmstat-server1.rrd -> server1/vmstat.rrd
In the graph definition, you can match all vmstat-* files and voila, you can
make the sum of what you want:
TITLE Accessed Virtual Memory
YAXIS Size kB
DEF:avm at RRDIDX@=@RRDFN@:mem_avm:AVERAGE
CDEF:sw at RRDIDX@=avm at RRDIDX@,4048,*
LINE1:sw at RRDIDX@#@COLOR@:@RRDPARAM@:STACK
GPRINT:sw at RRDIDX@:LAST:AVM \: %5.1lf%s (cur)
GPRINT:sw at RRDIDX@:MAX: \: %5.1lf%s (max)
GPRINT:sw at RRDIDX@:MIN: \: %5.1lf%s (min)
GPRINT:sw at RRDIDX@:AVERAGE: \: %5.1lf%s (avg)\n
I do this for adding CPU load on a pSeries with lpars so I can make the sum of
all physical CPU usage.
To unsubscribe from the xymon list, send an e-mail to
xymon-unsubscribe at xymon.com
More information about the Xymon