Dashboard panels not loading

This support forum board is for support questions relating to Nagios Log Server, our solution for managing and monitoring critical log data.
Koja
Posts: 20
Joined: Fri Jul 12, 2019 2:50 am

Dashboard panels not loading

Post 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:

Image

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!
User avatar
mbellerue
Posts: 1403
Joined: Fri Jul 12, 2019 11:10 am

Re: Dashboard panels not loading

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
Koja
Posts: 20
Joined: Fri Jul 12, 2019 2:50 am

Re: Dashboard panels not loading

Post 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.
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Dashboard panels not loading

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Koja
Posts: 20
Joined: Fri Jul 12, 2019 2:50 am

Re: Dashboard panels not loading

Post 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.
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Dashboard panels not loading

Post 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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Koja
Posts: 20
Joined: Fri Jul 12, 2019 2:50 am

Re: Dashboard panels not loading

Post by Koja »

It appears that I'm already running the latest version:

Image

Image
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Dashboard panels not loading

Post 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?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Koja
Posts: 20
Joined: Fri Jul 12, 2019 2:50 am

Re: Dashboard panels not loading

Post 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.
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Dashboard panels not loading

Post by cdienger »

Thanks for confirming. What OS is the NLS server?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.