[rrd-users] Re: help with graph issue

2004-02-27 Thread Pavel Ruzicka
Hello,

> But  would like the graphs it produces to be filled in below , like MRTG
> graphs are.

You must use AREA (and STACK) on place LINE.

See http://people.ee.ethz.ch/~oetiker/webtools/rrdtool/manual/rrdgraph.html

> I thought the setting '--alt-y-mrtg' did that but I seem to get an error
> when thats placed in the 'rrdtool graph' command line.

This option only alternatively computes Y axis.
This option is relatively new and was not in older RRDTool versions.

Best regards,

Pavel Ruzicka

--
Unsubscribe mailto:[EMAIL PROTECTED]
Helpmailto:[EMAIL PROTECTED]
Archive http://www.ee.ethz.ch/~slist/rrd-users
WebAdminhttp://www.ee.ethz.ch/~slist/lsg2.cgi


[rrd-users] How to make CDEF compute a bunch of moving averages ?

2004-02-27 Thread Eric Ho
Hi,
I've a rrd file that has only 1 data source where its CF is defined as average.
I'm trying to go back to a particular week in last month and compute
a bunch of moving averages for that week.  Each moving ave should be
computed on samples from the last 15 days.
Is this even possible in using CDEF ?
Or I need to do this programmatically using 'rrdtool fetch' ?
Thx.
 
 

Thanks.

;-e).

--
Unsubscribe mailto:[EMAIL PROTECTED]
Helpmailto:[EMAIL PROTECTED]
Archive http://www.ee.ethz.ch/~slist/rrd-users
WebAdminhttp://www.ee.ethz.ch/~slist/lsg2.cgi


[rrd-users] help with graph issue

2004-02-27 Thread Moyaze Shivji

Hi

I have manages to succesfully graph some captured data and got RRDTool to
do exactly what I want.

But  would like the graphs it produces to be filled in below , like MRTG
graphs are.

I thought the setting '--alt-y-mrtg' did that but I seem to get an error
when thats placed in the 'rrdtool graph' command line.

Any help would be much appreciated.

Thanks

M

--
Unsubscribe mailto:[EMAIL PROTECTED]
Helpmailto:[EMAIL PROTECTED]
Archive http://www.ee.ethz.ch/~slist/rrd-users
WebAdminhttp://www.ee.ethz.ch/~slist/lsg2.cgi


[rrd-users] Re: Can CDEF be made to compute averages from 2 different data sources ?

2004-02-27 Thread Serge Maandag
> I've 2 different data sources from 2 separate RRD files.
> Both heartbeats are the same, and the 'step' for both RRD 
> files are the same.
>  
> Is it possible to write a CDEF to compute the average of some of the
> samples from these 2 data sources and then graph this average value ?

Should be as simple as:

DEF:a=a.rrd:ds0:AVERAGE
DEF:b=b.rrd:ds0:AVERAGE
CDEF:avg=a,b,+,2,/
AREA:avg#FF:average of a and b

Serge.

-
Op de inhoud van dit e-mailbericht en de daaraan gehechte bijlagen is de inhoud 
van de volgende disclaimer van toepassing: 
http://www.zeelandnet.nl/disclaimer.php

--
Unsubscribe mailto:[EMAIL PROTECTED]
Helpmailto:[EMAIL PROTECTED]
Archive http://www.ee.ethz.ch/~slist/rrd-users
WebAdminhttp://www.ee.ethz.ch/~slist/lsg2.cgi


[rrd-users] Re: Can CDEF be made to compute averages from 2 different data sources ?

2004-02-27 Thread Alex van den Bogaerdt
On Fri, Feb 27, 2004 at 12:51:24AM -0800, Eric Ho wrote:

> I've 2 different data sources from 2 separate RRD files.
> Both heartbeats are the same, and the 'step' for both RRD files are the same.
>  
> Is it possible to write a CDEF to compute the average of some of the
> samples from these 2 data sources and then graph this average value ?
> By 'some samples', I mean samples from a certain period of time
> in the past.
>  
> By looking at the manpages of 'rrdtool graph', I can't see how 
> this can be done via CDEF...  or am I misusing CDEF or missing
> the point of CDEF ?

You can't access RRD files using "CDEF".  Accessing original data is
done using "DEF".  When you have access to the data, so when it is in
a "vname" (DEF:vname=) you can process it using "CDEF".

HTH
Alex
-- 
begin  sig
http://www.googlism.com/index.htm?ism=alex+van+den+bogaerdt&type=1
This message was produced without any mailto:[EMAIL PROTECTED]
Helpmailto:[EMAIL PROTECTED]
Archive http://www.ee.ethz.ch/~slist/rrd-users
WebAdminhttp://www.ee.ethz.ch/~slist/lsg2.cgi


[rrd-users] Re: My firs rrd - please help :)

2004-02-27 Thread Serge Maandag
> 1 - 500. I would like the graph to have values ranging from 1 - 500 on
> the vertical axis. And the have a 24 hour period represented by the
> horizontal axis. I am still pretty confused as how to do this. Here is
> what Im trying
> 
> rrdtool create test.rrd   \
> --start 1077819500\
> DS:speed:ABSOLUTE:300:U:U \
> RRA:AVERAGE:0.5:1:24

1. your heartbeat is set to 300, as is your step size. You probably
don't want that.
2. Why do you use absolute? You probably want to use gauge.
3. 24 samples of 300 seconds does not make 24 hours.
4. --lower-limit, --upper-limit and --rigid will help you to fix your
y-axis.
5. your numbers will get interpolated unless $date div 300 == 0. May not
be a problem, as long as you know. 

Serge.

-
Op de inhoud van dit e-mailbericht en de daaraan gehechte bijlagen is de inhoud 
van de volgende disclaimer van toepassing: 
http://www.zeelandnet.nl/disclaimer.php

--
Unsubscribe mailto:[EMAIL PROTECTED]
Helpmailto:[EMAIL PROTECTED]
Archive http://www.ee.ethz.ch/~slist/rrd-users
WebAdminhttp://www.ee.ethz.ch/~slist/lsg2.cgi


[rrd-users] Can CDEF be made to compute averages from 2 different data sources ?

2004-02-27 Thread Eric Ho
Hi,
 
I've 2 different data sources from 2 separate RRD files.
Both heartbeats are the same, and the 'step' for both RRD files are the same.
 
Is it possible to write a CDEF to compute the average of some of the
samples from these 2 data sources and then graph this average value ?
By 'some samples', I mean samples from a certain period of time
in the past.
 
By looking at the manpages of 'rrdtool graph', I can't see how 
this can be done via CDEF...  or am I misusing CDEF or missing
the point of CDEF ?
 
 

Thanks.

;-e).

--
Unsubscribe mailto:[EMAIL PROTECTED]
Helpmailto:[EMAIL PROTECTED]
Archive http://www.ee.ethz.ch/~slist/rrd-users
WebAdminhttp://www.ee.ethz.ch/~slist/lsg2.cgi


[rrd-users] Re: My firs rrd - please help :)

2004-02-27 Thread Moyaze Shivji


I had this problem in the week.

I was told to use

--lower-limit 1 --upper-limit 500 for the y-axis.


To measure over a 25 hour period I would sugesst taking 288 samplesI
think that works out as 1 sample every 300 seconds (i.e.5 minutes).

something along the lines off :

/usr/bin/rrdtool create file.rrd --start 'epoch time'
BDS:numbers:GAUGE:600:U:U RRA:A
VERAGE:0.5:1:288


Hope this helps.

M
(aka RRD Newbie)




On Thu, 26 Feb 2004, jdavis wrote:

> Hello,
>  I am trying to setup a simple rrd and then graph the data. My data
> set is simple.. every 5 minutes my rrd is updated with a number between
> 1 - 500. I would like the graph to have values ranging from 1 - 500 on
> the vertical axis. And the have a 24 hour period represented by the
> horizontal axis. I am still pretty confused as how to do this. Here is
> what Im trying
>
> rrdtool create test.rrd   \
> --start 1077819500\
> DS:speed:ABSOLUTE:300:U:U \
> RRA:AVERAGE:0.5:1:24
>
> I think this is only for  2 hours, i will adjust to 24 hours when i
> think i understand ...
>
> then heres what updates the rrd...
>
> #! /usr/bin/perl -w
> $amount = 1;
> @array = 1 .. 500;
>
> while($amount){
>   sleep(300);
>   $index   = rand @array;
>   $element = $array[$index];
>   $date = `/bin/date +%s`;
>   chomp($date);
>   print "Date = $date - Element = $element\n";
>   `rrdtool update test.rrd  $date:$element`;
> }
>
> the output i get from this is not what i expected to see..
> on the vertical axis i get 1.0 to 1.4 not 1 to the highest value
> inserted.
>
> Could someone please help me understand. I just want a graph that tells
> me what the number was that was entered into the rrd every 5 minutes.
>
> Lost,
> --
> jdavis <[EMAIL PROTECTED]>
>
> --
> Unsubscribe mailto:[EMAIL PROTECTED]
> Helpmailto:[EMAIL PROTECTED]
> Archive http://www.ee.ethz.ch/~slist/rrd-users
> WebAdminhttp://www.ee.ethz.ch/~slist/lsg2.cgi
>
>

--
Unsubscribe mailto:[EMAIL PROTECTED]
Helpmailto:[EMAIL PROTECTED]
Archive http://www.ee.ethz.ch/~slist/rrd-users
WebAdminhttp://www.ee.ethz.ch/~slist/lsg2.cgi