Interface traffic - spikes

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

Moderators: Developers, Moderators

Post Reply
saulofonseca
Posts: 40
Joined: Mon Jun 25, 2018 5:35 pm

Interface traffic - spikes

Post by saulofonseca »

Hello all,

The cacti is having some strange behavior with just one of my devices. It's a 10G network switch.

All the interfaces graphs started suddenly to have spikes. All other graphs types of this device are ok. The other interface traffic graphs from other devices are ok too.

I added this device again with another name, and created the same graphs....and all graphs do not have this spikes.....

What should I do to correct the problem ????......I would like to keep the graph's history, if possible.

Follow graphs and a debug from one of this graphs.....
Attachments
Captura de tela de 2023-08-09 21-32-41.png
Captura de tela de 2023-08-09 21-32-41.png (352.66 KiB) Viewed 412 times
Captura de tela de 2023-08-09 21-33-38.png
Captura de tela de 2023-08-09 21-33-38.png (361.86 KiB) Viewed 412 times
Captura de tela de 2023-08-09 21-35-47.png
Captura de tela de 2023-08-09 21-35-47.png (87.77 KiB) Viewed 412 times
Captura de tela de 2023-08-09 21-36-25.png
Captura de tela de 2023-08-09 21-36-25.png (95.19 KiB) Viewed 412 times
Captura de tela de 2023-08-09 21-45-08.png
Captura de tela de 2023-08-09 21-45-08.png (799.73 KiB) Viewed 412 times
GGA
Cacti User
Posts: 62
Joined: Mon May 03, 2010 5:56 am

Re: Interface traffic - spikes

Post by GGA »

We had this once with with devices which had to answer a huge amount of queries. And for some reason, interface traffic was done at the end. The problem was at the end a timing thing. Some cycle took longer and some were pretty short, was depending from the systemload. Well at the end the interfaces were not monitored every 5minutes, it was more a 7min, 3min, 5min and so on. 7min was then a positive peak and 3min a negative peak.
As I was not able to change the query-order for a single device, I've added the same a second time only for querying this interfaces.
User avatar
Osiris
Cacti Guru User
Posts: 1424
Joined: Mon Jan 05, 2015 10:10 am

Re: Interface traffic - spikes

Post by Osiris »

Likely using 32 bit counter when you should use 64bit. There is a way to fix the without recreating the graph, Go to the Graph Management page, filter by the Graph Template highlight the broken Graph, and from the Fo drop-down select Change Template and press Go...
Before history, there was a paradise, now dust.
saulofonseca
Posts: 40
Joined: Mon Jun 25, 2018 5:35 pm

Re: Interface traffic - spikes

Post by saulofonseca »

Hello,

All my devices use 10 gigabit interfaces, so I know I must use 64 bit counter. So, that's not this case.

Regards
saulofonseca
Posts: 40
Joined: Mon Jun 25, 2018 5:35 pm

Re: Interface traffic - spikes

Post by saulofonseca »

Hello again,

I managed to fix the problem.

I raised the number of processes/threads from 4/8 to 8/16 , and the spikes were gone.

Thank u all

Regards
User avatar
TheWitness
Developer
Posts: 17059
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: Interface traffic - spikes

Post by TheWitness »

Oh, that's odd. Glad it worked.
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
User avatar
TheWitness
Developer
Posts: 17059
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: Interface traffic - spikes

Post by TheWitness »

The other thing that can happen is that the max value in the RRDfile is wrong, causing the graphs to clip from time to time. Cacti detects the interface speed ("if" ifHighSpeed is right), and should set the max value correctly. But as with any system there are places or times when this "initial" setting is missed, and then Cacti uses the "default speed" a setting you have control of.
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest