Page 1 of 3

Slow login

Posted: Sat Jun 13, 2015 2:13 pm
by CFT6Server
I have a standard deployment of Fusion. I noticed that when logging in, it takes a bit of time to login. This is a vanilla build and logging in using default admin account. Any ideas?

Re: Slow login

Posted: Sat Jun 13, 2015 2:16 pm
by eloyd
How long is "a bit of time?" What kind of machine are you running on? Processor, memory, etc.

Re: Slow login

Posted: Sat Jun 13, 2015 2:43 pm
by CFT6Server
I timed it and it takes about a minute for the home page to show after putting in the credentials.
Server specs are 2vCPU with 2GB of RAM. Nothing is configured on here yet, so I don't see any activities and system resource utilization is low.

Re: Slow login

Posted: Mon Jun 15, 2015 9:09 am
by tmcdonald
Any errors in /var/log/httpd/error_log when you attempt the login? What does "top" show for resources?

Re: Slow login

Posted: Mon Jun 15, 2015 2:17 pm
by CFT6Server
No errors when logging in and top is good.
fusion top.JPG

Re: Slow login

Posted: Mon Jun 15, 2015 3:10 pm
by jolson
Is this behavior the same across all browsers?

If you open up a developer console and watch the 'network' tab, on which element does the login hang? Any clues there?

I am under the assumption that you built this server manually rather than using our pre-built Fusion VM?

Re: Slow login

Posted: Tue Jun 16, 2015 12:09 pm
by CFT6Server
I've tested on IE and Chrome with both producing the same results. This VM was deployed from OVF.

During the login process, not much happens. But right after the login is successful, I get this message
fusion err.jpg
Login looks clean and I am not sure what it is waiting on....
fusion login.JPG
Netstat shows the connection is established the minute I click login

Code: Select all

tcp        0      0 ::ffff:10.242.102.115:443   ::ffff:10.242.13.10:38397   ESTABLISHED

Re: Slow login

Posted: Tue Jun 16, 2015 12:15 pm
by eloyd
Do you get the same delay if you try http:// instead of https:// ?

Re: Slow login

Posted: Tue Jun 16, 2015 3:40 pm
by jolson
CFT6Server,

Let us know the results of logging in via http versus https, as eloyd has stated. Thanks!

Re: Slow login

Posted: Tue Jun 16, 2015 9:15 pm
by CFT6Server
Doesn't make any different. I had permanent redirect turned to 443, but I've disabled and tested it. The timing is to the T for 1 minute http or https.

I've tailed the httpd logs and got the following:

Code: Select all

10.242.13.10 - - [16/Jun/2015:19:11:20 -0700] "GET /nagiosfusion/login.php?nsp=141026403dbf8317f941069f0b07838e&page=auth&pageopt=login&username=nagiosadmin&password=<PASSWORDHASH>&loginButton=Login HTTP/1.1" 302 2 "http://10.242.102.115/nagiosfusion/login.php?logout" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.71 Safari/537.36"
10.242.13.10 - - [16/Jun/2015:19:12:20 -0700] "GET /nagiosfusion/index.php HTTP/1.1" 200 15906 "http://10.242.102.115/nagiosfusion/login.php?logout" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.71 Safari/537.36"
10.242.13.10 - - [16/Jun/2015:19:12:20 -0700] "GET /nagiosfusion//includes/page-home-main.php?&= HTTP/1.1" 200 8120 "http://10.242.102.115/nagiosfusion/index.php" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.71 Safari/537.36"
10.242.13.10 - - [16/Jun/2015:19:12:20 -0700] "GET /nagiosfusion/ajaxhelper.php?cmd=getfusioncoreajax&opts=%7B%22func%22%3A%22get_pagetop_alert_content_html%22%2C%22args%22%3A%22%22%7D&nsp=141026403dbf8317f941069f0b07838e HTTP/1.1" 200 829 "http://10.242.102.115/nagiosfusion/index.php" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.71 Safari/537.36"
10.242.13.10 - - [16/Jun/2015:19:12:21 -0700] "GET /nagiosfusion/ajaxhelper.php?cmd=getfusioncoreajax&opts=%7B%22func%22%3A%22get_getting_started_html%22%2C%22args%22%3A%22%22%7D&nsp=141026403dbf8317f941069f0b07838e HTTP/1.1" 200 1016 "http://10.242.102.115/nagiosfusion//includes/page-home-main.php?&=" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.71 Safari/537.36"
Noticed the exact 1 min delay from the first GET to the second GET. Then it logs in fine....