rrdbot-create question

36 views
Skip to first unread message

kashmish

unread,
Aug 28, 2009, 11:32:23 AM8/28/09
to rrdbot
hello list,
trying to setup an rrd file for 5-minute data for one month or such,
using in the config file a line with:
archive: 12/hour * 1 month
but always get 289 lines only in the resulting rrdfile,
any idea what i might be missing?
i'd expect to see something like
12 x 24 x 30 - 8640 lines in the rrd file?

tia
-k

Stef Walter

unread,
Sep 24, 2009, 4:42:20 PM9/24/09
to rrd...@googlegroups.com, kashmish

Sorry for missing this, it went into my junk folder for some reason.

It seems to work for me, when using the above archive setting, I get an
rrd created with the following RRA:

RRA:AVERAGE:0.6:30:8640

What is your poll interval? That's the minimum timespan that can be
archived.

After removing the rrd file (or moving it out of the way), could you
post the output of the following command:

# rrdbot-create -nv

Thanks!

Stef

kashmish

unread,
Sep 29, 2009, 3:44:49 PM9/29/09
to st...@memberwebs.com, rrd...@googlegroups.com
Hi Stef,
thx for digging this out!

I created a new one for a handfull of counters, that i need to be
populated with 12 minute polls for 5 days with:
interval: 720
and
archive: 5/hour * 5 days

the resulting 'rrdbot-create -n' looks like:

# rrdtool create '/var/db/rrds/r1_ints.rrd' -b-1y -s720
DS:3_0:COUNTER:2160:0:U DS:4_0:COUNTER:2160:0:U DS:5_0:COUNTER:2160:0:U
DS:6_0:COUNTER:2160:0:U DS:3_0-d:COUNTER:2160:0:U
DS:4_0-d:COUNTER:2160:0:U DS:5_0-d:COUNTER:2160:0:U
DS:6_0-d:COUNTER:2160:0:U DS:3_1:COUNTER:2160:0:U DS:3_1
-d:COUNTER:2160:0:U DS:4_1:COUNTER:2160:0:U DS:4_1-d:COUNTER:2160:0:U
DS:5_1:COUNTER:2160:0:U DS:5_1-d:COUNTER:2160:0:U
DS:6_1:COUNTER:2160:0:U DS:6_1-d:COUNTER:2160:0:U RRA:AVERAGE:0.6:1:600

which looks OK in itself, but when i run an:

rrdtool fetch /var/db/rrds/r1_ints.rrd AVERAGE|wc -l
i get only 122 lines with timestamps returned.
which translates to 24h worth of datasets only

It seems i am missing something about how the rrdtool works, and that
this is not a rrdbot issue at all.
and i also spent sometime now with the rrdtool docu, but seem to miss
the casus-knacktus for this issue :-/
appreciate any help/pointers!!
TIA
-k

Stef Walter

unread,
Sep 30, 2009, 1:56:50 PM9/30/09
to rrd...@googlegroups.com, kashmish
kashmish wrote:
> rrdtool fetch /var/db/rrds/r1_ints.rrd AVERAGE|wc -l

This defaults to the current day. See:

http://oss.oetiker.ch/rrdtool/doc/rrdfetch.en.html

Cheers,

Stef


Message has been deleted
Message has been deleted

kashmish

unread,
Oct 12, 2009, 3:29:53 PM10/12/09
to rrdbot
anyone heard of a solaris (10) implementation of rrdbot?
anything special to be concerned about?

TIA
-k
(sorry for the multiple posting fuss, seems i need to get used to the
google-methods ;-) )

Stef Walter

unread,
Oct 13, 2009, 1:18:09 PM10/13/09
to rrd...@googlegroups.com, kashmish
kashmish wrote:
> sorry for the double posting, but was supposed to be a new thread:

>
> anyone heard of a solaris (10) implementation of rrdbot?
> anything special to be concerned about?

The released version of rrdbot doesn't run on Solaris. However just put
together a machine with a OpenSolaris 2009-06 install, and so I spent
some time modifying it so that it does build and run.

Attached is the resulting patch. Please test this and let me know how it
goes. Once I hear back from you. I'll include this in the next release
of rrdbot.

Cheers,

Stef


0001-Fixes-for-OpenSolaris-0906.patch

Stef Walter

unread,
Oct 26, 2009, 10:23:16 PM10/26/09
to kashmish, rrd...@googlegroups.com
I hope it's okay if I CC this the rrdbot mailing list.

kashmish wrote:
> but now to my problem:
> unfortunately my snmp-oid are dynamic, they can disappear over time.
> in that case the snmp query would return a 'Unknown variable name' for
> some of the individual items within the bundled request,

Does using 'table queries' solve your dynamic oid problem? See the TABLE
QUERIES section here:

http://memberwebs.com/stef/software/rrdbot/rrdbot.conf.5.html

> nd it seems that if a bundled rrdbot collection request fails even for a single oid within the bundled request,
> that all other values from that bundle also seem to get dropped?!

Is rrdbot dropping the 'other values' or is that your SNMP agent?

Cheers,

Stef


kashmish

unread,
Oct 26, 2009, 10:40:03 PM10/26/09
to st...@memberwebs.com, rrd...@googlegroups.com

Stef Walter wrote:
> I hope it's okay if I CC this the rrdbot mailing list.
>
> kashmish wrote:
>
>> but now to my problem:
>> unfortunately my snmp-oid are dynamic, they can disappear over time.
>> in that case the snmp query would return a 'Unknown variable name' for
>> some of the individual items within the bundled request,
>>
>
> Does using 'table queries' solve your dynamic oid problem? See the TABLE
> QUERIES section here:
>
> http://memberwebs.com/stef/software/rrdbot/rrdbot.conf.5.html
>

unfortunately not, these are dynamic id, they are being re-created e.g.
each time the device on the other end would reboot powercycle or such,
no usefull and easy to identify label on the other end :-/
>> and it seems that if a bundled rrdbot collection request fails even for a single oid within the bundled request,


>> that all other values from that bundle also seem to get dropped?!
>> Is rrdbot dropping the 'other values' or is that your SNMP agent?
>>
>>

good question, it's a cisco router, would they behave like that? have
you ever observed that?
i will certainly dig into that on my end...

thx for the quickest response!!
-k

Stef Walter

unread,
Oct 27, 2009, 1:08:02 PM10/27/09
to kashmish, rrd...@googlegroups.com
kashmish wrote:
> 2) the cisco agent reports back for each unknown oid a message like:
> SNMPv2-SMI::transmission.127.7.1.4.1.2.6.16431 = No Such Instance
> currently exists at this OID

Use snmp2:// urls instead of snmp:// this will use snmp protocol two,
which supports requests that partially succeed/fail.

Cheers,

Stef

Reply all
Reply to author
Forward
0 new messages