I'm trying to calculate bandwidth for an interface on an SNMP device.

I'm using a calculated item with the following formula to get bits per minute (item read every 60 secs):

(last(ifInOctets3,#1)-last(ifInOctets3,#2))/60

It works perfectly except when the 32-bit or 64-bit counters wrap around.

Is there any way to use some sort of logical scripting in the formula?

Having huge spikes in my bandwidth graphs are not an option - I need to calculate the values accurately.

This is the only thing stopping me from retiring cacti.

I'm using a calculated item with the following formula to get bits per minute (item read every 60 secs):

(last(ifInOctets3,#1)-last(ifInOctets3,#2))/60

It works perfectly except when the 32-bit or 64-bit counters wrap around.

Is there any way to use some sort of logical scripting in the formula?

Having huge spikes in my bandwidth graphs are not an option - I need to calculate the values accurately.

This is the only thing stopping me from retiring cacti.

## Comment