Page 1 of 2
Dashboard panels not loading
Posted: Mon Jul 29, 2019 1:43 am
by Koja
Hello,
I've set up a dashboard for our SonicWall firewall. Everything is working nicely, but most of the time when I open the dashboard
two of my panels are blank. They start working when I eg. disable a filter or enable one.
Both panels are showing statistics, a pie graph and a histogram and they're using the queries I've configured. Here's what the two
look like.
At first I thought that maybe NLS doesn't have enough resources to load the panels, but
htop on the server shows all four cores peak at about 45% when opening the dashboard in question:
Here is the
source code to the dashboard I've been talking about. This problem does not occur with any of the half dozen dashboards I have.
The panels do not appear by themselves after waiting. The only way to make them appear is to make some sort of a change, eg. switch a filter on or off.
Thanks in advance!
Re: Dashboard panels not loading
Posted: Mon Jul 29, 2019 2:30 pm
by mbellerue
Thank you for providing the code. The Top Offenders dashlet shows up as well as it can without data. In your screenshot it's just blank, where as when I load it up, it does show the level lines. Top Traffic Types remains blank, even if I alter the filter. This may be due to me not having any data, so absolutely no data is displayed.
I'm wondering if this is a rendering issue with your browser. Have you tried in another browser? Preferably one that you don't normally use for LS. Or maybe viewing the dashboard in Private Browsing mode? If the data shows up in either of those circumstances, it's possible some cache in your browser is causing the data to not be displayed.
Re: Dashboard panels not loading
Posted: Tue Jul 30, 2019 2:18 am
by Koja
Hi,
I tried opening the dashboard with the following browsers: Firefox, Internet Explorer, Edge, and Edge Dev (the new Chromium-based Edge). Also, I did the same with the private modes of those browsers.
I use only Firefox, never any other browsers unless I'm facing issues.
Re: Dashboard panels not loading
Posted: Tue Jul 30, 2019 4:03 pm
by cdienger
Try upping the memory_limit for php by following the steps in
https://support.nagios.com/kb/article/n ... e-611.html and restarting the httpd service with "service httpd restart".
I'd be curious to see if any problems are logged loading the dashboard while using Firefox's dev tools. Hit F12 to open dev tools and then go to the dashboard page and note any errors under the console and network sections.
Re: Dashboard panels not loading
Posted: Wed Jul 31, 2019 1:35 am
by Koja
I increased the memory_limit to 1024M, even though I found no errors when issuing this command:
tail /var/log/httpd/*rror_log
When visiting the dashboard using Firefox's dev tools, I spotted
the following errors in the console tab. I found no errors on the networking tab.
Re: Dashboard panels not loading
Posted: Wed Jul 31, 2019 2:18 pm
by cdienger
It looks like you're running into a bug that was fixed inf 2.0.2. From
https://www.nagios.com/downloads/nagios ... hange-log/:
Fixed issue in dashboards where panels couldn't always be created due to javascript errors [TPS#12859] -JO
An upgrade to the latest version can be done by following the steps in
https://assets.nagios.com/downloads/nag ... Server.pdf
Re: Dashboard panels not loading
Posted: Wed Jul 31, 2019 2:31 pm
by Koja
It appears that I'm already running the latest version:

Re: Dashboard panels not loading
Posted: Wed Jul 31, 2019 2:53 pm
by cdienger
Interesting... If you click away/make a change and go back to the page so that it loads properly, do you see the same javascript errors?
What OS?
Re: Dashboard panels not loading
Posted: Wed Jul 31, 2019 3:07 pm
by Koja
Koja wrote:I spotted
the following errors in the console tab. I found no errors on the networking tab.
When I go to the dashboard and the two panels are blank, I get the same errors as I mentioned earlier. If I, for example, turn a filter off and back on, the panels appear but no errors are shown in the dev console. If I then go back to NLS' front page and again go to the dashboard, the same thing happens all over again - the panels are blank and JS-errors in the dev console.
I'm on Windows 10, version 1803, build 17134.885, although I'm upgrading to version 1903 as we speak.
Re: Dashboard panels not loading
Posted: Wed Jul 31, 2019 3:36 pm
by cdienger
Thanks for confirming. What OS is the NLS server?