On Monday 24 March 2003 11:25 pm, [EMAIL PROTECTED] wrote: > > -------- Original Message -------- > > Subject: [mrtg] Re: unknaszero > > Date: Mon, 24 Mar 2003 10:49:56 +0200 > > From: "M.E. " > > To: George Chelidze > > CC: [EMAIL PROTECTED] > > References: <[EMAIL PROTECTED]> > > <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> > > > > > > I use MRTG with RRDTool > > I want to make the rrdtool to store ZERO instead of the famous NaN > > My test on using unknaszero show a value of 0.0000000000e+000 being stored > in the *.rrd > > > Also, I want to graph the sum of multiple interfaces using the summing > > capability of MRTG, but when one of the interfaces is down ( or doesn't > > return data ) the porcess stops. > > The way that we graph the sum of multiple interfaces is by using the > 'graph' function of RRDTool. > Here as an example of what we do (ex. using 3 interfaces): > > c:\mrtg\rrdtool\bin\rrdtool graph aggregate.png --imgformat PNG --width > 650 --height 150 > DEF:onex=64.39.30.21_23.rrd:ds0:AVERAGE > DEF:oney=64.39.30.21_23.rrd:ds1:AVERAGE > DEF:twox=64.39.30.21_24.rrd:ds0:AVERAGE > DEF:twoy=64.39.30.21_24.rrd:ds1:AVERAGE > DEF:threex=64.39.30.21_25.rrd:ds0:AVERAGE > DEF:threey=64.39.30.21_25.rrd:ds1:AVERAGE > CDEF:myxx=onex,twox,threex,+,+,8,* > CDEF:myyy=oney,twoy,threey,+,+,8,* > CDEF:myzz=myxx,myyy,+ > AREA:myxx#00ff00:"Incoming Traffic (AVERAGE)" > LINE1:myyy#0000ff:"Outgoing Traffic (AVERAGE)" > LINE2:myzz#ff0000:"Total traffic (in+out)" > > You might want to look at RRDTool's documentation on 'graph' and 'create' > for an explanation. We use them in a web page where the user can select > the interface(s) that they want to see an aggregate graph of. > > Hope that helps, > Jeremy >
Thanks Jeremy I know all of that, and I know how to use rrdtool under Linux. The problem is that I use a frontend (cacti), hence I can't use the graph function directly. I need MRTG to generate one rrd file that contain the totals. Yeah, summing through cacti is not easy. Regards Mohamed Eldesoky I don't have any experience with cacti, but I created a Graph Administration page for our company to use the graph function of RRDTool through a web interface with the RRDs.pm module. We choose what interfaces we want to see a total for and generate the PNG graph. I don't know if that would help. My 'first' trial at something similar to what you're trying to do, was to also create one rrd file that contained the totals, but I couldn't get it to work. I'll try and look at 'cacti' and see if I can come up with anything. (probably not) Sorry my info didn't help, Jeremy Fluhmann -- Unsubscribe mailto:[EMAIL PROTECTED] Archive http://www.ee.ethz.ch/~slist/mrtg FAQ http://faq.mrtg.org Homepage http://www.mrtg.org WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi
