[rrd-users] Re: My firs rrd - please help :)
Moyaze Shivji
moyaze at mail.bada-bing.org.uk
Fri Feb 27 08:35:18 MET 2004
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 samples....I
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 <jd at taproot.bz>
>
> --
> 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
>
>
--
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