ilConsigliere wrote: >I'm trying to insert sereveral rrd databas einto one graph. >I'm using a per script made by an ex-collegue and it works fine but I cannot >display the stack of the values. >I use this kind of creation: > >[memory] > FNPATTERN memory_(.*)_(.*).rrd > GROUPBY @RRDPARAM_2@ > TITLE Memory Utilization of @RRDPARAM_2@ > YAXIS Used > -w 680 > -l 0 > -Y > COMMENT:"Graph period @DATERANGE@\n" > DEF:p@RRDIDX@=@RRDFN@:used:AVERAGE > LINE2:p@RRDIDX@#@COLOR@:"@RRDPARAM_1@ used \t" > GPRINT:p@RRDIDX@:LAST:" \: %4.2lf%s (cur)" > GPRINT:p@RRDIDX@:MAX:" \: %4.2lf%s (max)" > GPRINT:p@RRDIDX@:MIN:" \: %4.2lf%s (min)" > GPRINT:p@RRDIDX@:AVERAGE:" \: %4.2lf%s (avg)\n" > >I'd like to display also the stack but I cannot do it. I tried several way >but I faild. How can I do that?
As I'm completely unfamiliar with that syntax, it's hard to follow. It would be easier when asking RRD specific (as opposed to language/API specific) questions to stick to the standard shell options format. As Jim says, all you need to do is this : DEF:a=<some file>.rrd:a:AVERAGE \ DEF:b=<another file>.rrd:x:AVERAGE \ AREA:a:... \ AREA:b:... STACK Ie, you just do one DEF for each item of data you want in the graph - and it makes no difference whether they come from the same or different databases. -- 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@lists.oetiker.ch https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users