System Health Graphs - problem and a question

Started by phoenix, September 30, 2015, 08:07:02 AM

Previous topic - Next topic
September 30, 2015, 08:07:02 AM Last Edit: September 30, 2015, 08:13:52 AM by phoenix
Well done on the latest update, the System Health Graphs are looking good. :)

I don't see anything on the Traffic Graphs no matter which period I choose (all interfaces are chosen), anything possibly causing this that I can look at?

[edit]The Traffic Graphs depend on me selecting an interface (duh!) although they are already 'ticked' in the drop down, I think it might be useful to have a default graph selected (WAN, perhaps) so there's no confusion about whether the graphs are working or not.

The question I have is about the Zoom Level (time periods) you can select, they seem rather strange - the periods shown are 20hrs, 60hrs, 76 days & 75 days. I'm guessing those ranges are not intentional, or are they?
Regards


Bill

Morning Bill,

yeah, I was just gonna ask if you selected the right graph. I agree on switching the default to something more meaningful. :)

The periods are intentional and in line with the old RRD graph windows, with the exception that they don't expand past the data that you have (that's why the 76/75 days are capped). Only thing odd is that the last period is shorter. Maybe Jos knows more.


Cheers,
Franco

Good morning, franco.

It's probably too early in the morning for me. I saw the interfaces were all 'ticked' and just assumed there should be data showing. Perhaps it might also be better if you decide to set a default to uncheck the ones that aren't being graphed. The current setting of them all being ticked seems counter intuitive to me.
Ah, that explains the time periods - I've never really looked at the RRD graphs as I use my own monitoring tools for that.
Regards


Bill

September 30, 2015, 08:24:48 AM #3 Last Edit: September 30, 2015, 08:58:50 AM by jschellevis
Hi Bill,

Thanks for your comments, let me explain how it works...

System Health does not depend on anything than an rrd file.
It lists all the files in your /var/db/rrd/ and generates a menu from it.

Then each graph/page is created by extracting the data from the rrd file, that is where the periods come form as those are the recording periods in the chosen rrd files.. so they can be different for each rrd.

To make sure your browser does not get overloaded a subset of data is generated and averages are calculated for them, the period that is used in the average is shown above the graph.

Now you can zoom in by selecting a period under the graph.. just click and drag over the smaller graph.
If more detailed period is available then new averages will be calculated and shown.

So everything is dynamic and only a representation of the original (but reinterpreted) data.

It is also possible to add some more information to the graph such as title and y-axis name, there is an xml file on the system to do so, but again system health is not depending on it.. only the rrd file is needed.. thats the real beauty of it all.

Jos

Oh and one more thing...

as for browsers, there is a huge difference in speed for drawing an svg graph, here is the list from best to worst that i tested:

chrome - very fast
safari - reasonable
firefox - slow



September 30, 2015, 08:49:07 AM #5 Last Edit: September 30, 2015, 11:05:56 AM by phoenix
Thank you both for the speedy feedback. :)

I don't find the SVG graphs too bad in FF but displaying it more than doubles my OPNsense CPU usage from about 2-5% to 11%.  The information on the OPNsense GUI is great for a quick look if I happen to be making any changes to it but more detailed information is better provided another server.
Regards


Bill

September 30, 2015, 08:55:33 AM #6 Last Edit: September 30, 2015, 08:58:28 AM by jschellevis
Bill, you are welcome  :)

Thank you for the feedback!