[rrd-users] Re: traffic peak
Jean-Edouard BABIN
Jeb at jeb.com.fr
Tue May 27 17:57:19 MEST 2003
Try this:
cp file.rrd file.rrd.bkup (backup the file)
rrdtool tune file.rrd
rrdtool tune file.rrd --data-source-type dsname:DERIVE
rrdtool tune file.rrd --minimum dsname:0 --maximum dsname:100000000
(100000000 is an example...)
rrdtool tune file.rrd
rrdtool dump file.rrd > file.xml
rrdtool restore --range-check file.xml file.rrd.new
You can also change you graph file (.sh or .pl)
you have something like:
'DEF:A=/path/to/your/file.rrd:dsname:AVERAGE'
then you graph it with LINE1:A#.... or so
You try this
'CDEF:B=A,MINVALUE,GT,A,MAXVALUE,LT,A,UNKN,IF,UNKN,IF' then graph B...
replace MINVALUE with the minimun value you want to graph (ex: 0) and
MAXVALUE with the maximum value you want to graph (ex: 100000000)
on 27/05/03 17:28, « Iñaki Martínez » <sistema at euskal-linux.org> wrote:
> hi Alex van den Bogaerdt!!!
>
>>>> No, rrdtool tune filename with no options.
>>> What does without options????
>>
>> Try it, you'll like it.
>
> I think no results
>
> # rrdtool tune interface.rrd
> DS[in] typ: DERIVE hbt: 600 min: 0.0000 max: nan
> DS[out] typ: DERIVE hbt: 600 min: 0.0000 max: nan
>
>
> The graph is the same....... the peak is still there..... :-(
>
>
> Test this one:
>
>> change options, dump, restore, sorry
>>
>> 1) Change the settings of your database using rrdtool tune (RTFM)
>
> # rrdtool tune interface.rrd
> DS[in] typ: DERIVE hbt: 600 min: 0.0000 max: nan
> DS[out] typ: DERIVE hbt: 600 min: 0.0000 max: nan
>
>> 2) Dump the database into an xml file
>
> rrdtool dump interface.rrd > interface.xml
>
>> 3) Restore the database from that xml file, using the option
>> that tells restore to check ranges
>
> rrdtool restore interface.xml interface.rrd -r
>
>
> The graph is the same....... the peak is still there..... :-(
--
Jean-Edouard BABIN
Mail: Jeb at jeb.com.fr
Web : www.Jeb.com.fr
IRC : Jeb @ Undernet
--
Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
Help mailto:rrd-users-request at list.ee.ethz.ch?subject=help
Archive http://www.ee.ethz.ch/~slist/rrd-users
WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi
More information about the rrd-users
mailing list