I got into a problem with choosing counter size in cacti. I have 1G ether interfaces, which can operate at 10, 100 and 1000 mbit.
Per RFC2233:
3.1.6. Counter Size
So, in order to plot interface traffic correctly, software must:For interfaces that operate at 20,000,000 (20 million) bits per
second or less, 32-bit byte and packet counters MUST be used. For
interfaces that operate faster than 20,000,000 bits/second, and
slower than 650,000,000 bits/second, 32-bit packet counters MUST
be used and 64-bit octet counters MUST be used. For interfaces
that operate at 650,000,000 bits/second or faster, 64-bit packet
counters AND 64-bit octet counters MUST be used.
1) Get list of interfaces (let's say ifIndex 1-5)
2) Get 64 bit counters - they exist ONLY for interfaces with speed over 650,000,000 bits/second (let's say with ifindex 2 and 3)
3) Get the rest of ifIndex from 32 bit counters -they exist only for interfaces lower than 650,000,000 bits/second (it will be 1,4 and 5)
4) populate RRDs
Can this be done in cacti?