Ad blocker detected: Our website is made possible by displaying online advertisements to our visitors. Please consider supporting us by disabling your ad blocker on our website.
I'm trying to manually calculate for the MAX value of my interface via python script, but I can't get the same result as the one shown in my cacti graph.
cigamit wrote: ↑Tue May 05, 2020 7:48 pm
trying changing
max_mbps = round((max_bps / 1000 / 1000), 2)
to
max_mbps = round((max_bps / 1024 / 1024), 2)
and see if it gets you a bit closer.
Yeah it does, now it's giving me 563.88M.
I've also tried calculating the 95th Percentile, which I was able to accurately do and I was using 1000 to convert bits to mbps/gbps
TheWitness wrote: ↑Tue May 05, 2020 9:11 pm
Look at the base value of the graph template.
But shouldn't the cli command `rrdtool graph` have the same result for that as it is the same command shown by cacti?
Also, I checked the "Base Value" for the graph, it's '1000'.
I thing the problem is Python, lol. Just kidding. This is a good question for Tobi. It may simply be that RRDtool chose to pull the data from another less/granular archive that was different to what the fetch function choose. The Python math looks good to me.
True understanding begins only when we realize how little we truly understand...
Looking again, you need to ensure you are consistent with resolution. In your Python call, you are calling out the 5 minute rra, Cacti let's Tobi pick.
True understanding begins only when we realize how little we truly understand...
TheWitness wrote: ↑Wed May 06, 2020 7:03 am
Looking again, you need to ensure you are consistent with resolution. In your Python call, you are calling out the 5 minute rra, Cacti let's Tobi pick.
I tried calling out the one minute rra, and it is giving way more max value.