One little Newbie Question

View: New views
5 Messages — Rating Filter:   Alert me  

One little Newbie Question

by clinder :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi everyone,

my boss wants me to raise up a network monitoring system so i just started with rrdtool a few days ago.
i read a lot of tutorials and documentation but there are a lot of questions left. here is one of them.

1. i use the perl module RRDs to access and  fetch the database. i created my test DB with:

  RRDs::create($DB, "--step=60",
    "DS:cpu-load:GAUGE:66:U:U",
    "RRA:MAX:0.5:1:60",
    "RRA:MAX:0.5:60:24",
    "RRA:MAX:0.5:1440:7",
  ) or die $RRDs::error;

so everybody can see that rdd's stepsize is 60 sec. right?

Now i tried to fetch some data with:

    my ($start, $step, $names, $data) =
     RRDs::fetch($DB, "MAX");

printing $step says: stepsize would be 3600

Why?

thanks a lot in advance
Chris

Re: One little Newbie Question

by clinder :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Nobody has an idea? :(

I still don't know

Chris


clinder wrote:
Hi everyone,

my boss wants me to raise up a network monitoring system so i just started with rrdtool a few days ago.
i read a lot of tutorials and documentation but there are a lot of questions left. here is one of them.

1. i use the perl module RRDs to access and  fetch the database. i created my test DB with:

  RRDs::create($DB, "--step=60",
    "DS:cpu-load:GAUGE:66:U:U",
    "RRA:MAX:0.5:1:60",
    "RRA:MAX:0.5:60:24",
    "RRA:MAX:0.5:1440:7",
  ) or die $RRDs::error;

so everybody can see that rdd's stepsize is 60 sec. right?

Now i tried to fetch some data with:

    my ($start, $step, $names, $data) =
     RRDs::fetch($DB, "MAX");

printing $step says: stepsize would be 3600

Why?

thanks a lot in advance
Chris

Re: One little Newbie Question

by Cornelius Bartke :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

clinder 04.12.2007 13:59:
> Nobody has an idea? :(

Try passing the commandline arguments and values seperately:
RRDs::create($rrd, '--step', 60, ...)

-Cornelius


> clinder wrote:
>> Hi everyone,
>>
>> my boss wants me to raise up a network monitoring system so i just started
>> with rrdtool a few days ago.
>> i read a lot of tutorials and documentation but there are a lot of
>> questions left. here is one of them.
>>
>> 1. i use the perl module RRDs to access and  fetch the database. i created
>> my test DB with:
>>
>>   RRDs::create($DB, "--step=60",
>>     "DS:cpu-load:GAUGE:66:U:U",
>>     "RRA:MAX:0.5:1:60",
>>     "RRA:MAX:0.5:60:24",
>>     "RRA:MAX:0.5:1440:7",
>>   ) or die $RRDs::error;
>>
>> so everybody can see that rdd's stepsize is 60 sec. right?
>>
>> Now i tried to fetch some data with:
>>
>>     my ($start, $step, $names, $data) =
>>      RRDs::fetch($DB, "MAX");
>>
>> printing $step says: stepsize would be 3600
>>
>> Why?
>>
>> thanks a lot in advance
>> Chris

_______________________________________________
rrd-users mailing list
rrd-users@...
https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users

Re: One little Newbie Question

by Hans-Joachim Ehlers :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Maybe another way around:
Check ganglia - http://www.ganglia.info/ -  and see how it uses rrdtool. It might give some good ideas ?

regards
Hajo


>>> clinder <clinder@...> 04/12/2007 13:59 >>>

Nobody has an idea? :(

I still don't know

Chris



clinder wrote:

>
> Hi everyone,
>
> my boss wants me to raise up a network monitoring system so i just started
> with rrdtool a few days ago.
> i read a lot of tutorials and documentation but there are a lot of
> questions left. here is one of them.
>
> 1. i use the perl module RRDs to access and  fetch the database. i created
> my test DB with:
>
>   RRDs::create($DB, "--step=60",
>     "DS:cpu-load:GAUGE:66:U:U",
>     "RRA:MAX:0.5:1:60",
>     "RRA:MAX:0.5:60:24",
>     "RRA:MAX:0.5:1440:7",
>   ) or die $RRDs::error;
>
> so everybody can see that rdd's stepsize is 60 sec. right?
>
> Now i tried to fetch some data with:
>
>     my ($start, $step, $names, $data) =
>      RRDs::fetch($DB, "MAX");
>
> printing $step says: stepsize would be 3600
>
> Why?
>
> thanks a lot in advance
> Chris
>

--
View this message in context: http://www.nabble.com/One-little-Newbie-Question-tf4847105.html#a14150058 
Sent from the RRDTool - User mailing list archive at Nabble.com.

_______________________________________________
rrd-users mailing list
rrd-users@...
https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users

_______________________________________________
rrd-users mailing list
rrd-users@...
https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users

Re: One little Newbie Question

by Tobias Oetiker-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Chris,

note that you database only stres hires data for 1 hour, if you ask
it for data over a longer periode (fetch without arguments will do
that) it will resort to the lower resolution rra to fill you
request ...

cheers
tobi

Today Hans-Joachim Ehlers wrote:

> Maybe another way around:
> Check ganglia - http://www.ganglia.info/ -  and see how it uses rrdtool. It might give some good ideas ?
>
> regards
> Hajo
>
>
> >>> clinder <clinder@...> 04/12/2007 13:59 >>>
>
> Nobody has an idea? :(
>
> I still don't know
>
> Chris
>
>
>
> clinder wrote:
> >
> > Hi everyone,
> >
> > my boss wants me to raise up a network monitoring system so i just started
> > with rrdtool a few days ago.
> > i read a lot of tutorials and documentation but there are a lot of
> > questions left. here is one of them.
> >
> > 1. i use the perl module RRDs to access and  fetch the database. i created
> > my test DB with:
> >
> >   RRDs::create($DB, "--step=60",
> >     "DS:cpu-load:GAUGE:66:U:U",
> >     "RRA:MAX:0.5:1:60",
> >     "RRA:MAX:0.5:60:24",
> >     "RRA:MAX:0.5:1440:7",
> >   ) or die $RRDs::error;
> >
> > so everybody can see that rdd's stepsize is 60 sec. right?
> >
> > Now i tried to fetch some data with:
> >
> >     my ($start, $step, $names, $data) =
> >      RRDs::fetch($DB, "MAX");
> >
> > printing $step says: stepsize would be 3600
> >
> > Why?
> >
> > thanks a lot in advance
> > Chris
> >
>
>

--
Tobi Oetiker, OETIKER+PARTNER AG, Aarweg 15 CH-4600 Olten
http://it.oetiker.ch tobi@... ++41 62 213 9902

_______________________________________________
rrd-users mailing list
rrd-users@...
https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users