Page 2 of 4

Re: Very slow login

Posted: Wed May 28, 2014 3:03 pm
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.

Re: Very slow login

Posted: Wed May 28, 2014 3:09 pm
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.

Re: Very slow login

Posted: Wed May 28, 2014 6:16 pm
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.

Re: Very slow login

Posted: Thu May 29, 2014 11:09 am
by jomann
rajasegar,

Is your fusion installation also on a VM?

Re: Very slow login

Posted: Thu May 29, 2014 6:46 pm
by rajasegar
jomann wrote:rajasegar,

Is your fusion installation also on a VM?
Yes Fusion is on VM that is very healthy.

Re: Very slow login

Posted: Fri May 30, 2014 12:38 am
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

Re: Very slow login

Posted: Fri May 30, 2014 12:29 pm
by slansing
@ rajasegar,

Please provide the log capture from the previous directions as we are still waiting to see that.

Re: Very slow login

Posted: Sun Jun 01, 2014 6:33 pm
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

Re: Very slow login

Posted: Mon Jun 02, 2014 11:56 am
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.

Re: Very slow login

Posted: Mon Jun 02, 2014 6:39 pm
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.