Page 1 of 1

Auto-Scaling Performance Graphs

Posted: Mon Mar 02, 2020 9:21 pm
by silverbenz
Hi,

After using Cacti and Nagios Core for many years I've now got an installation of Nagios XI (Enterprise Feature license) to manage. I like the product so far but I'm struggling with some of the performance graphs. Specifically, bandwidth graphing.

I have some interfaces that the Switch/Router wizard discovered correctly as 20Gbps-capable. However, the traffic that uses those interfaces is limited further upstream to MUCH lower values (ie. 6Mbps); with the throughput most of the time more accurately measured in Kbps. The Highcharts performance graphs show Gb/s on the Y-Axis and each step is "0.00", I assume because of the comparatively low numbers being graphed. I've added an example below.
Example BW Graph.png
I've been scouring the forums, as well as the XI settings, to see if there's a way to get the y-axis to auto-scale according to the data being presented, but I haven't been able to find anything. Ideally, from the example above, I'd want the graph to be displaying in Kb/s rather than Gb/s.

Thanks in advance for any assistance.

Cheers,
Ben

Re: Auto-Scaling Performance Graphs

Posted: Tue Mar 03, 2020 4:09 pm
by jdunitz
There are two parts to this problem (and three things to do to fix it):

1) Your plugin configuration is measuring things in gigabits, not kilobits. If you look at this screenshot, you can see that you can change the G to K, and it will rescale how it's reporting the data:

bandwidth.PNG
2)
The second part is that once you define the actual graph in the GUI, it'll be set to whatever scale the plugin was set to at the time of it's creation. So, once you've changed the G to K above, you can now delete and recreate the graph, and it should do the right thing.

There is also one more thing to do:

The performance data files will have to be deleted so they can be recreated to account for the changes ( you'll lose the old data).

cd /usr/local/nagios/share/perfdata/yourhostname
Delete the .rrd and .xml file with the name of the service, and that should allow them to be updated.
Wait for 15 minutes for them to update in the GUI, and see if everything looks as you'd expect.

Re: Auto-Scaling Performance Graphs

Posted: Wed Mar 04, 2020 1:28 am
by silverbenz
Firstly: Thank you very much for the info.

Secondly: Bugger.

I've got quite a lot of graphs in this condition so if I verify your suggestion works as expected I'll have a fair bit of work to do to fix them all.

So, for future reference, I need to manually manage the values for each discovered port if I'm using the Router/Switch wizard to ensure the graphs look sensible.

Thanks again.