So, why don't you try this: #!/bin/sh /usr/local/bin/rrdtool graph -s 1week /usr/local/rrd/bandwidth.png -a PNG -h 125 -v "Data Throughput" \
or /usr/local/bin/rrdtool graph -s 1month /usr/local/rrd/bandwidth.png -a PNG -h 125 -v "Data Throughput" \ etc ... Try this out, ad tell us. Att, Rogério Schneider On 10/1/06, Cesar Diaz <[EMAIL PROTECTED]> wrote: > > This is the script I got to work to createthe daily chart: > > #!/bin/sh > /usr/local/bin/rrdtool graph /usr/local/rrd/bandwidth.png -a PNG -h 125 -v > "Data Throughput" \ > 'DEF:in=/usr/local/rrd/bandwidth.rrd:in:AVERAGE' \ > 'DEF:out=/usr/local/rrd/bandwidth.rrd:out:AVERAGE' \ > 'CDEF:kbin=in,1024,/' \ > 'CDEF:kbout=out,1024,/' \ > 'AREA:in#00FF00:Bandwidth In' > 'LINE1:out#0000FF:Bandwidth Out\j' \ > 'GPRINT:kbin:LAST:Last Bandwidth In\: %3.2lf KBps' > 'GPRINT:kbout:LAST:Last Bandwidth Out\: %3.2lf KBps\j' \ > 'GPRINT:kbin:AVERAGE:Average Bandwidth In\: %3.2lf KBps' > 'GPRINT:kbout:AVERAGE:Average Bandwidth Out\:%3.2lf KBps\j' > > > > On 10/1/06, Rogério Schneider <[EMAIL PROTECTED]> wrote: > > > > Cesar, do you have any sample of your initial try to create a graph > > definiton of daily, weekly, monthly and yearly chart? > > May you send us some sample, so we can try help you to improve it. > > > > Note: The secret is to handle the rrd_graph -s <start_time> to generate > > daily, weekly... graphs. > > It's like, -s 1day, or -s 1week... so you can get the initial time of > > your > > graphs. > > > > Att, > > Rogério Schneider > > > > > > On 9/30/06, Cesar Diaz < [EMAIL PROTECTED]> wrote: > > > > > > I created an rrd file with this command: > > > rrdtool create t-band.rrd --start N DS:in:COUNTER:120:0:U > > > DS:out:COUNTER:120:0:U RRA:AVERAGE:0.5:8:190 RRA:AVERAGE: 0.5:56:198 > > > RRA:AVERAGE:0.5:280:198 RRA:AVERAGE:0.5:3360:198 > > > > > > I was trying to create a file that will hold day, week, month and year > > > data. > > > > > > > > > I update the file with this command: > > > > > > /usr/local/bin/rrdupdate > > > /home/cdiaz/rrd/t-band.rrdN:`/usr/local/bin/snmpget -v 1 -c rasec -Oqv > > > localhost IF-MIB:: > > > ifInOctets.1`:`/usr/local/bin/snmpget -v 1 -c rasec -Oqv localhost > > > IF-MIB:: > > > ifOutOctets.1` > > > > > > My questions are, is this the best way to accomplish this and what > > rrdtool > > > graph format do I use to generate the separate graph for the different > > > time > > > periods. > > > > > > > > > This is my first attempt to create my own rrd graph, so please be > > gentle. > > > :-) > > > > > > > > > -- > > > Unsubscribe mailto: [EMAIL PROTECTED] > > ?subject=unsubscribe > > > Help mailto:[EMAIL PROTECTED] > > > Archive http://lists.ee.ethz.ch/rrd-users > > > WebAdmin http://lists.ee.ethz.ch/lsg2.cgi > > > > > > > > > > > > -- > > Att, > > > > Rogério Schneider > > +55 (55) 9985 2127 > > +55 (55) 3332 5923 > > +55 (55) 3333 8158 > > +55 (55) 3321 1535 > > > > MSN: [EMAIL PROTECTED] > > ICQ: 78778973 > > GTalk: [EMAIL PROTECTED] > > Skype: stockrt > > > > -- > > Unsubscribe mailto:[EMAIL PROTECTED] > > Help mailto: [EMAIL PROTECTED] > > Archive http://lists.ee.ethz.ch/rrd-users > > WebAdmin http://lists.ee.ethz.ch/lsg2.cgi > > > > > -- Att, Rogério Schneider +55 (55) 9985 2127 +55 (55) 3332 5923 +55 (55) 3333 8158 +55 (55) 3321 1535 MSN: [EMAIL PROTECTED] ICQ: 78778973 GTalk: [EMAIL PROTECTED] Skype: stockrt -- Unsubscribe mailto:[EMAIL PROTECTED] Help mailto:[EMAIL PROTECTED] Archive http://lists.ee.ethz.ch/rrd-users WebAdmin http://lists.ee.ethz.ch/lsg2.cgi
