Slow login

This support forum board is for questions relating to Nagios Fusion.
CFT6Server
Posts: 506
Joined: Wed Apr 15, 2015 4:21 pm

Slow login

Post 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?
User avatar
eloyd
Cool Title Here
Posts: 2190
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: Slow login

Post by eloyd »

How long is "a bit of time?" What kind of machine are you running on? Processor, memory, etc.
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
CFT6Server
Posts: 506
Joined: Wed Apr 15, 2015 4:21 pm

Re: Slow login

Post 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.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Slow login

Post by tmcdonald »

Any errors in /var/log/httpd/error_log when you attempt the login? What does "top" show for resources?
Former Nagios employee
CFT6Server
Posts: 506
Joined: Wed Apr 15, 2015 4:21 pm

Re: Slow login

Post by CFT6Server »

No errors when logging in and top is good.
fusion top.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: Slow login

Post 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?
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.
CFT6Server
Posts: 506
Joined: Wed Apr 15, 2015 4:21 pm

Re: Slow login

Post 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
You do not have the required permissions to view the files attached to this post.
User avatar
eloyd
Cool Title Here
Posts: 2190
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: Slow login

Post by eloyd »

Do you get the same delay if you try http:// instead of https:// ?
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
jolson
Attack Rabbit
Posts: 2560
Joined: Thu Feb 12, 2015 12:40 pm

Re: Slow login

Post by jolson »

CFT6Server,

Let us know the results of logging in via http versus https, as eloyd has stated. 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.
CFT6Server
Posts: 506
Joined: Wed Apr 15, 2015 4:21 pm

Re: Slow login

Post 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....
Locked