Dashboards crashing when loading from alerts

This support forum board is for support questions relating to Nagios Log Server, our solution for managing and monitoring critical log data.
Locked
Jklre
Posts: 163
Joined: Wed May 28, 2014 1:56 pm

Dashboards crashing when loading from alerts

Post by Jklre »

I have a little over 200 alerts created in the dashboard currently. I started noticing that when I click on the "show alert in dashboard" button or the link that's generated via the alert emails. The dashboard is crashing the browser. Just to be safe I tested this is 2 different browsers and on 2 different systems to make sure its not a local issue with my system.

It seems to effect random alerts in the list, but not all of them.

This is what I'm seeing. Any ideas on what may be causing this? Thanks in advance.

A script on this page may be busy, or it may have stopped responding. You can stop the script now, open the script in the debugger, or let the script continue.

Script: http://pnagios05lxv/nagioslogs….js?ver= ... nagios3:29
ss2.jpg
ss3.jpg
ss1.jpg
You do not have the required permissions to view the files attached to this post.
jolson
Attack Rabbit
Posts: 2560
Joined: Thu Feb 12, 2015 12:40 pm

Re: Dashboards crashing when loading from alerts

Post by jolson »

Does this error stop the page from loading entirely?
Does the URL of the 'bad' alerts differ at all from the URL of the 'normal' alerts?
Twits Blog
Show me a man who lives alone and has a perpetually clean kitchen, and 8 times out of 9 I'll show you a man with detestable spiritual qualities.
Jklre
Posts: 163
Joined: Wed May 28, 2014 1:56 pm

Re: Dashboards crashing when loading from alerts

Post by Jklre »

jolson wrote:Does this error stop the page from loading entirely?
Does the URL of the 'bad' alerts differ at all from the URL of the 'normal' alerts?
In chrome it totally kills the page. In firefox I need to skill the script in order for the page to finish loading.

Here is a few examples of the URLS of both working and not working alerts. Note: The alerting functionality works fine. Its just loading these dashboards to view the queries that is not.

Let me know if you need any additional information. Thank you.

Working:
http://pnagios05lxv/nagioslogserver/ind ... zmPuPziI7Q

http://pnagios05lxv/nagioslogserver/ind ... 1%5D%7D%7D

http://pnagios05lxv/nagioslogserver/ind ... oLz88zmWyw

http://pnagios05lxv/nagioslogserver/ind ... 4%5D%7D%7D

not working:

http://pnagios05lxv/nagioslogserver/ind ... xtUqKkGnaQ

http://pnagios05lxv/nagioslogserver/ind ... 1%5D%7D%7D


http://pnagios05lxv/nagioslogserver/ind ... wKLVQhO-uQ

http://pnagios05lxv/nagioslogserver/ind ... 2%5D%7D%7D
jolson
Attack Rabbit
Posts: 2560
Joined: Thu Feb 12, 2015 12:40 pm

Re: Dashboards crashing when loading from alerts

Post by jolson »

It looks like your working alerts always have 'm' as a suffix, while your non-working alerts do not. To show you what I mean:
Excerpt from working:

Code: Select all

logserver.js?from=60m
Non-working:

Code: Select all

logserver.js?from=50
I suggest taking a look at the non-working alerts and throwing an 'm' on them - they may be missing that suffix.
Twits Blog
Show me a man who lives alone and has a perpetually clean kitchen, and 8 times out of 9 I'll show you a man with detestable spiritual qualities.
Jklre
Posts: 163
Joined: Wed May 28, 2014 1:56 pm

Re: Dashboards crashing when loading from alerts

Post by Jklre »

jolson wrote:It looks like your working alerts always have 'm' as a suffix, while your non-working alerts do not. To show you what I mean:
Excerpt from working:

Code: Select all

logserver.js?from=60m
Non-working:

Code: Select all

logserver.js?from=50
I suggest taking a look at the non-working alerts and throwing an 'm' on them - they may be missing that suffix.
Well that's simple. I just modified one of the non working alerts for the loop back period to change from 50 to 50m and now its loading.

Let me play around with the other ones but it looks like thats it.
jolson
Attack Rabbit
Posts: 2560
Joined: Thu Feb 12, 2015 12:40 pm

Re: Dashboards crashing when loading from alerts

Post by jolson »

Sounds good - I'll keep this thread open and wait for your response. Thanks!
Twits Blog
Show me a man who lives alone and has a perpetually clean kitchen, and 8 times out of 9 I'll show you a man with detestable spiritual qualities.
Jklre
Posts: 163
Joined: Wed May 28, 2014 1:56 pm

Re: Dashboards crashing when loading from alerts

Post by Jklre »

jolson wrote:Sounds good - I'll keep this thread open and wait for your response. Thanks!
Looks like that did it. Thanks you can close this thread if you need to. All of the alerts are loading properly.
Locked