Traffic graph highly inaccurate

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

Moderators: Developers, Moderators

Post Reply
DutchSamurai
Posts: 13
Joined: Tue Jan 19, 2016 7:08 pm

Traffic graph highly inaccurate

Post by DutchSamurai »

Hello,

I'm new to Cacti so apologies if I'm asking the obvious but I've noticed the traffic graphs created by Cacti are not accurate at all, totally missing out on bandwidth generated in short bursts.

I want to use Cacti to graph the traffic going through the WAN interface on my PFsense box. I got the poller interval set to every 10 seconds and the cron interval to every minute under settings. I added the template Interface - Traffic as a data source and created the in/out Bytes (64bit counters) and in/out Bytes - total bandwidth (changed the data query to 64bit counters).

But the graphs that get created are totally inaccurate. Prolonged steady traffic gets logged fine but webbrowsing or short downloads (e.g 50MB in 20 seconds) don't get logged properly. No spike is shown and total added bandwidth consumed might increase with something like 20kb while in reality its 5MB.

I understand if there is lets say a 2 seconds 1MB/s spike that won't show up because it'll get averaged but I do need it to show the correct amount of data transferred otherwise I'll have no idea if the graph is actually reliable.

Is there anyway to do this? Seems like the traffic graph should do exactly that but somehow it doesn't.
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Re: Traffic graph highly inaccurate

Post by phalek »

Ask in the pfsense forums how often the pfsense firewall actually updates these SNMP counters. Cacti is only seeing what's actually reported.
Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
DutchSamurai
Posts: 13
Joined: Tue Jan 19, 2016 7:08 pm

Re: Traffic graph highly inaccurate

Post by DutchSamurai »

I figured this out. Setting the poller to anything other than the cron interval seems to cause this problem. With everything set to one minute the graph and data volume appears to be correct (minus the peaks not showing).
DutchSamurai
Posts: 13
Joined: Tue Jan 19, 2016 7:08 pm

Re: Traffic graph highly inaccurate

Post by DutchSamurai »

Or I thought. Cacti broke down on its own and even after a reinstall traffic reporting is inaccurate as hell. On every 100MB it will add about 10MB. The problem isn't with what's being reported from the firewall.

Is there anyway to get Cacti to work as it should?
wenko
Posts: 5
Joined: Mon Feb 15, 2016 3:03 pm

Re: Traffic graph highly inaccurate

Post by wenko »

One thing worth considering is that you are likely graphing averages, not peaks. My pfSense FW is graphed by Cacti and mine is based on averages over the polling interval. I am not sure there is an OID for peak as it would need some significant logic behind it. Your other option is to write a perl script to query it more frequently (as frequently as it allows, say 5s) then sort that data in an array and take the largest value, the peak, and use that as your data point instead of an average (Sum divided by number of samples).
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests