issue on a interface counter 64bit

If you figure out how to do something interesting/cool in Cacti and want to share it with the community, please post your experience here.

Moderators: Developers, Moderators

Post Reply
soldato
Posts: 8
Joined: Thu Dec 05, 2024 9:41 am

issue on a interface counter 64bit

Post by soldato »

hi all,

i need to monitor the bandwidth of a mellanox switch with 25Gbit/sec interfaces

i am new on cactiez, anyway....

i made some graph but they are completly different of the switch graph, i had some doubt and i see that the counters used was 32bit counters and it sometimes going to zero, i suppose for overflow.

anyway the right counters are 64bit ifHCInOctets and ifHCOutOctets, with a snmpwalk i can read these values and they are the same reported into the switch WEBUI.

the problem is with cacti graph , i created the new ones but i continue to view strange values (peak at 50MB/sec instead 350/400 MB/sec)

i also created a simple script that read these values , calculate the difference and put it into a CSV. these collected values match with switch graph but not with cactiez graph.

can anyone help me?
Attachments
cacti (4).png
cacti (4).png (245.91 KiB) Viewed 518 times
cacti (3).png
cacti (3).png (68.18 KiB) Viewed 518 times
cacti (2).png
cacti (2).png (336.49 KiB) Viewed 518 times
2024-12-10 15_20_05-Onyx _ Ports _ Information & Configuration.png
2024-12-10 15_20_05-Onyx _ Ports _ Information & Configuration.png (24.69 KiB) Viewed 518 times
2024-12-10 15_20_18-Onyx _ Ports _ Information & Configuration.png
2024-12-10 15_20_18-Onyx _ Ports _ Information & Configuration.png (24.05 KiB) Viewed 518 times
Last edited by soldato on Tue Dec 10, 2024 9:37 am, edited 1 time in total.
User avatar
macan
Cacti Guru User
Posts: 1137
Joined: Tue Mar 18, 2008 2:30 am
Location: Czech

Re: issue on a interface counter 64bit

Post by macan »

I think that it is correct. Graph is in bytes, so 50*8 = 400Mbit.
You can create In/Out graph in bits too.
Let the Cacti grow!
soldato
Posts: 8
Joined: Thu Dec 05, 2024 9:41 am

Re: issue on a interface counter 64bit

Post by soldato »

the cacti graph is in bytes, check the legend at left side, or not ?

new peaks are in order to 700MByte/sec now.
soldato
Posts: 8
Joined: Thu Dec 05, 2024 9:41 am

Re: issue on a interface counter 64bit

Post by soldato »

now i deleted all the graph including the data source,
created a new graph in order to have 64bit counters

and now the values are NaN
Attachments
2024-12-10 15_42_43-- Remote Desktop Connection.png
2024-12-10 15_42_43-- Remote Desktop Connection.png (19.39 KiB) Viewed 512 times
soldato
Posts: 8
Joined: Thu Dec 05, 2024 9:41 am

Re: issue on a interface counter 64bit

Post by soldato »

solved, i removed all the device involved and reacted all with the same values... now it works
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests