Maximum DS values for snmp/traffic

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
ineu
Posts: 4
Joined: Fri Jul 11, 2008 3:07 am

Maximum DS values for snmp/traffic

Post by ineu »

Hello.
I've installed cacti 0.8.7e from debian testing and tried to add graphs for network interface on another machine. I changed graph templates to use 64bit counters instead of 32bit, as traffic monitored is about 200 mbit, which overflows 32bit counters faster than 5 minutes.
I've also set maximum ds value to 10000000000000000000 in data templates for both in and out traffic (cacti doesn't allow to input more) and unchecked 'use per-data source value'. I've expected rrd files to be created with this maximum value, but they are not.
Maximum value is taken from ifSpeed in SNMP data query. It ignores whatever set in 'data templates'. So I have to check 'use per-data source value' back and change maximums in settings for particular data source.

Also I don't understand why ifSpeed is taken as maximum data source value. Interface speed has nothing in common with values of counters we gather, does it?
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: Maximum DS values for snmp/traffic

Post by gandalf »

ineu wrote:Maximum value .... It ignores whatever set in 'data templates'.
From my understanding, unchecking should have returned the desired results. But rrd_maximum is a special beast and seldomly used. So this might turn out to qualify as a bug. If you are sure, please post a bug report
R.
ineu
Posts: 4
Joined: Fri Jul 11, 2008 3:07 am

Re: Maximum DS values for snmp/traffic

Post by ineu »

gandalf wrote:
ineu wrote:Maximum value .... It ignores whatever set in 'data templates'.
From my understanding, unchecking should have returned the desired results. But rrd_maximum is a special beast and seldomly used.
Having ds[...].max set to default returned by snmp query (10 mbps for 1gb link, which itself seems like an snmp bug) gives something like:
www:/var/lib/cacti/rra# rrdtool info ac3_traffic_in_144.rrd | grep ds
...
ds[traffic_in].last_ds = "78906331242264"
ds[traffic_in].value = NaN
...
But when I change max to 1e20 or unlimited with rrdtool tune, values stored as expected:
www:/var/lib/cacti/rra# rrdtool info ac3_traffic_in_144.rrd | grep ds
...
ds[traffic_in].last_ds = "7890638124613"
ds[traffic_in].value = 1,5519939400e+07
...
So this might turn out to qualify as a bug. If you are sure, please post a bug report
Ok, I'll try to recheck it and submit bug report.
ineu
Posts: 4
Joined: Fri Jul 11, 2008 3:07 am

Post by ineu »

Ok, that's what I have for now:
1. I was mistaken in understanding of ds max. For COUNTER type it should be set to maximum interface speed, so for 1Gb interface 1e9 is enough, not 1e21 as I've set.
2. Default maximums are set to 1e7 due to bug in net-snmp, which reports incorrect speed when run as non-root user: https://bugs.launchpad.net/ubuntu/+sour ... bug/250549
3. Setting maximum values in 'data templates' still doesn't influence data sources created from snmp query. Snmp ifSpeed always overrides this value. Reporting this as bug.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests