> -----Original Message----- > From: [EMAIL PROTECTED] [mailto:rrd-users- > [EMAIL PROTECTED] On Behalf Of Angel Angel > Sent: Monday, October 24, 2005 12:19 PM > To: [email protected] > Subject: [rrd-users] I have a 24hours graph....but how to change for a > 48hours or month graph? > > Hi to all, > I´m looking to paint , to create graphs of the last 48hours or month > graphic...but i only obtain a last 24hours graphic. > Here its my script to create graphs....whats wrong??? > > Thanks in advanced, > > *server:/home/rrd/scripts# more creategraphs.sh > #!/usr/bin/ksh > export RRD="/home/rrd/rrd/concurrent-clientspin.rrd" > export GIFPIN="/home/rrd/graphs/pal.png" > export GIFPINT="/home/rrd/graphs/pel.png" > rrdtool graph $GIFPAL DEF:ccpal=$RRD:ccpal:AVERAGE AREA:ccpal#00b871s > rrdtool graph $GIFPEN DEF:ctpen=$RRD:ctpen:AVERAGE AREA:ctpen#00b871s > *
By default rrdtool will display the last 24 hours of data. Presuming you have the additional RRA's defined (or have data covering the time period), you'll need to use the Time Range arguments as documented at http://people.ee.ethz.ch/~oetiker/webtools/rrdtool/doc/rrdgraph.en.html For example, to graph the last 48 hours you might use something like the following -- rrdtool graph $GIFPAL --start end-2d --end now DEF:ccpal=$RRD:ccpal:AVERAGE AREA:ccpal#00b871s rrdtool graph $GIFPEN --start end-2d --end now DEF:ctpen=$RRD:ctpen:AVERAGE AREA:ctpen#00b871s -- Marc -- Unsubscribe mailto:[EMAIL PROTECTED] Help mailto:[EMAIL PROTECTED] Archive http://lists.ee.ethz.ch/rrd-users WebAdmin http://lists.ee.ethz.ch/lsg2.cgi
