Very slow login

This support forum board is for questions relating to Nagios Fusion.
b2m
Posts: 71
Joined: Tue Jun 11, 2013 9:18 am

Re: Very slow login

Post by b2m »

jomann wrote: How slow is slow? About how many seconds? How slow it is may give us an indication to what is causing the issue.
It takes about 40 seconds.
jomann wrote: Are you using HTTPS? A proxy? Are you linking to your XI over internal network vs external network?
No HTTPS, no proxy and internal network. The Fusion VM has two network interfaces.
jomann wrote: Is your database on the same server as your Nagios Fusion installation?
It's on the same server.
jomann wrote: How many checks are you performing on your Nagios XI boxes that are hooked into fusion?
Oh, I don't know exactly but not so many. We have about 40 hosts with 10 services each in average. I can look it up on Friday.
jomann wrote: It looks like in your error_log that you gave we are looking at the Nagios XI server ... the execution time hit the php limit of 30 seconds on line 248 - I went and looked this up and it looks like it's timing out while trying to verify user's permissions to see certain objects.
Oh sorry, maybe I copied it from the wrong SSH session this morning. I can check it on Friday, too.
jomann wrote: Reading over your error log I see no errors from fusion. The errors about the use_2014_features is fixed in the next version of Fusion but it also has no affect on the actual program other than it throwing errors - since they are notices you should still be able to use it normally, it just doesn't like that it's undefined.
These notifications were in the log file of the other user rajasegar. I will check mine on Friday.

Thanks so far.
jomann
Development Lead
Posts: 611
Joined: Mon Apr 22, 2013 10:06 am
Location: Nagios Enterprises

Re: Very slow login

Post by jomann »

Thanks for the information! If you can get us the fusion error_log that would be a lot of help too. Don't worry about the number of checks, if you only have around 400 that shouldn't affect it especially if it was slow before you added a fused server.

And sorry - yeah I see that it was his, either way if yours has the use_2014_features error it won't affect your login time.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
rajasegar
Posts: 1018
Joined: Sun Mar 30, 2014 10:49 pm

Re: Very slow login

Post by rajasegar »

jomann wrote:b2m, can you please help clarify a few things? We have been unable to reproduce the slow login here so we are looking into reasons why it would be slow and how we can reproduce it.

How slow is slow? About how many seconds? How slow it is may give us an indication to what is causing the issue.

Are you using HTTPS? A proxy? Are you linking to your XI over internal network vs external network?

Is your database on the same server as your Nagios Fusion installation?

How many checks are you performing on your Nagios XI boxes that are hooked into fusion? It looks like in your error_log that you gave we are looking at the Nagios XI server ... the execution time hit the php limit of 30 seconds on line 248 - I went and looked this up and it looks like it's timing out while trying to verify user's permissions to see certain objects.

Reading over your error log I see no errors from fusion. The errors about the use_2014_features is fixed in the next version of Fusion but it also has no affect on the actual program other than it throwing errors - since they are notices you should still be able to use it normally, it just doesn't like that it's undefined.
I just timed the login, 61 seconds. Got complains from all the users about this.
No https, proxy is there but excluded for local IP's, local LAN & WAN connection. However it is just a slow on a fresh install, maybe 30 - 45 seconds.
DB is in same server.

Ideally the login should succeed first and then some kind of dialog to show the sync.
Hourglass on the login screen is giving the impression the system is having issues.
5 x Nagios 5.6.9 Enterprise Edition
RHEL 6 & 7
rrdcached & ramdisk optimisation
jomann
Development Lead
Posts: 611
Joined: Mon Apr 22, 2013 10:06 am
Location: Nagios Enterprises

Re: Very slow login

Post by jomann »

rajasegar,

Is your fusion installation also on a VM?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
rajasegar
Posts: 1018
Joined: Sun Mar 30, 2014 10:49 pm

Re: Very slow login

Post by rajasegar »

jomann wrote:rajasegar,

Is your fusion installation also on a VM?
Yes Fusion is on VM that is very healthy.
5 x Nagios 5.6.9 Enterprise Edition
RHEL 6 & 7
rrdcached & ramdisk optimisation
b2m
Posts: 71
Joined: Tue Jun 11, 2013 9:18 am

Re: Very slow login

Post by b2m »

Here you have the correct error_log from our Fusion box. While login no new entry appears in it.

Code: Select all

[root@localhost ~]# cat /var/log/httpd/error_log
[Sun May 25 03:41:03 2014] [notice] Digest: generating secret for digest authentication ...
[Sun May 25 03:41:03 2014] [notice] Digest: done
[Sun May 25 03:41:03 2014] [notice] Apache/2.2.15 (Unix) DAV/2 PHP/5.3.3 configured -- resuming normal operations
[Tue May 27 03:44:03 2014] [notice] SIGHUP received.  Attempting to restart
[Tue May 27 03:44:03 2014] [notice] Digest: generating secret for digest authentication ...
[Tue May 27 03:44:03 2014] [notice] Digest: done
[Tue May 27 03:44:03 2014] [notice] Apache/2.2.15 (Unix) DAV/2 PHP/5.3.3 configured -- resuming normal operations
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Very slow login

Post by slansing »

@ rajasegar,

Please provide the log capture from the previous directions as we are still waiting to see that.
rajasegar
Posts: 1018
Joined: Sun Mar 30, 2014 10:49 pm

Re: Very slow login

Post by rajasegar »

slansing wrote:@ rajasegar,

Please provide the log capture from the previous directions as we are still waiting to see that.
See attached the log file
error_log.zip
You do not have the required permissions to view the files attached to this post.
5 x Nagios 5.6.9 Enterprise Edition
RHEL 6 & 7
rrdcached & ramdisk optimisation
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Very slow login

Post by lmiltchev »

The two, most common errors in the apache error log (system time, and 2014 features) shouldn't be causing the slow log in - these are just PHP notices. Is there any other VMs on the same cluster as the Nagios Fusion VM that are having load (or other) issues?
FYI, we will be releasing the newest version of Fusion very soon, so I would recommend upgrading to the latest version. See if this is going to fix the issue.
Be sure to check out our Knowledgebase for helpful articles and solutions!
rajasegar
Posts: 1018
Joined: Sun Mar 30, 2014 10:49 pm

Re: Very slow login

Post by rajasegar »

lmiltchev wrote:The two, most common errors in the apache error log (system time, and 2014 features) shouldn't be causing the slow log in - these are just PHP notices. Is there any other VMs on the same cluster as the Nagios Fusion VM that are having load (or other) issues?
FYI, we will be releasing the newest version of Fusion very soon, so I would recommend upgrading to the latest version. See if this is going to fix the issue.
Ok. Will report again if it is still slow in the new version.
5 x Nagios 5.6.9 Enterprise Edition
RHEL 6 & 7
rrdcached & ramdisk optimisation
Locked