Slow login

This support forum board is for questions relating to Nagios Fusion.
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 »

With respect to the Otara Millionaires Club, how bizarre. Okay. Let me dig up a VM to do some testing on for you.
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
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 »

I installed using the OVF file from Nagios downloads to a virtual machine with 1 CPU, 1 GB memory. Logged in with no delays.

Since you haven't done any configuration yet, have you considered wipe/reinstall? And did you install to a virtual box using a deployment file or did you install to a machine with an operating system already installed?
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 »

Rebuilding is almost surely the fastest way to resolve this weirdness. Does it make a difference if you log in as another user, or is the 1-minute delay consistent across all users?
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 »

This is consistent with all users across the board. I will redeploy the VM and try again here. Will report back. Thanks.
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 »

I think this is the first you said it was a VM, but I may be mistaken. Is it possible that you're waiting for some sort of DNS lookup to timeout?
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 »

So I am able to reproduce the issue with a vanilla deploy of the OVF. Exact symptoms even at first login.

Code: Select all

==> /var/log/httpd/access_log <==
10.242.13.10 - - [17/Jun/2015:14:51:43 -0700] "GET /nagiosfusion/login.php?nsp=309c4364eb5a05ca58e5fff8abd82a5a&page=auth&pageopt=login&username=nagiosadmin&password=<PASSWORD>&loginButton=Login HTTP/1.1" 302 2 "http://kdcnagfs01/nagiosfusion/login.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 - - [17/Jun/2015:14:52:43 -0700] "GET /nagiosfusion/index.php HTTP/1.1" 302 14014 "http://kdcnagfs01/nagiosfusion/login.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 - - [17/Jun/2015:14:52:43 -0700] "GET /nagiosfusion/login.php?showlicense HTTP/1.1" 200 46985 "http://kdcnagfs01/nagiosfusion/login.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 - - [17/Jun/2015:14:52:43 -0700] "GET /nagiosfusion/includes/fonts/fontawesome-webfont.woff?v=4.0.3 HTTP/1.1" 200 44432 "http://kdcnagfs01/nagiosfusion/includes/css/font-awesome.min.css?2014R1.0" "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 minute delay again. I think I know what could be the issue.... We do not have any internet access our servers, and looks like Fusion is trying to reach out to Nagios?

tcp 0 1 10.242.102.115:37086 50.116.21.73:80 SYN_SENT

I am not sure if that contributes to the wait, or perhaps it is looking for something else....
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 »

Here's what I would do.

Log on the VM console (do not SSH into the box). Then run a tcpdump on the host with a src of your local IP address. Then do your login:

Code: Select all

tcpdump -nN src <local IP>
This will tell you if it's trying to reach out to something else.
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 »

Confirmed that other than the local ip and the ip where I am logging in from. It is instantly reaching out to Nagios's IP.
tcpdump fusion.JPG
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 »

Congratulations! You have successfully identified your own problem! :-)

Looks like Fusion needs to be told not to phone home when it's not on a public Internet network. I'm tempted to run this myself to see what it's querying and what sort of information it's giving back to Nagios Enterprises. You could install ngrep to see what text it is sending (ngrep port 80) and then find the hostname that it's connecting to and then make an entry in /etc/hosts that points to 127.0.0.1. This way, it will get a page not found pretty quickly instead of a timeout.
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Slow login

Post by lmiltchev »

I'm tempted to run this myself to see what it's querying and what sort of information it's giving back to Nagios Enterprises.
Fusion needs to contact api.nagios.com for update and version checks.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked