Page 2 of 2

Re: Slow page loads for users

Posted: Wed May 18, 2016 6:30 pm
by Box293
acheesem wrote:
Box293 wrote: Does nagiosxi resolve to an internal private IP address, or a external one?
Its a CNAME to the servers hostname which is on a external ip
Box293 wrote: What is the result of this command on your XI server:

Code: Select all

host nagiosxi
~]# host nagiosxi
nagiosxi.xxx.nz is an alias for rudolph.xxx.nz.
rudolph.xxx.nz has address 156.###.###.###
acheesem wrote:
Box293 wrote:Can you go to Admin > System Config > Manage System Config

What is in your "Program URL" and "External URL" fields?
Mine was listed in Admin > System Config > System Settings (if that makes a difference)

Program URL is https://nagiosxi.xxx.nz/nagiosxi/
External URL is blank
So from what I understand what is happening, the ajax calls are going through a firewall to get to the public IP address of the XI server, and this is causing the delay. It's possible your firewall is limiting the amount of concurrent connections and hence slowing things down.

You could:
Define:
Program URL https://private_ip_address/nagiosxi/
External URL https://nagiosxi.xxx.nz/nagiosxi/

Then when accessing it internally, access it via https://private_ip_address/nagiosxi/

or

Setup split DNS so that nagiosxi.xxx.nz resolves to a private IP address when accessing it internally, so it doesn't need to go through the firewall.

This all assumes that your nagiosxi.xxx.nz server has a private IP address. If you only have a public IP address on the server then your options are limited, as all the traffic needs to pass through the firewall to get to the external address and back again.

Does this make sense or help?

Re: Slow page loads for users

Posted: Wed May 18, 2016 6:49 pm
by acheesem
Box293 wrote:
acheesem wrote:
Box293 wrote: Does nagiosxi resolve to an internal private IP address, or a external one?
Its a CNAME to the servers hostname which is on a external ip
Box293 wrote: What is the result of this command on your XI server:

Code: Select all

host nagiosxi
~]# host nagiosxi
nagiosxi.xxx.nz is an alias for rudolph.xxx.nz.
rudolph.xxx.nz has address 156.###.###.###
acheesem wrote:
Box293 wrote:Can you go to Admin > System Config > Manage System Config

What is in your "Program URL" and "External URL" fields?
Mine was listed in Admin > System Config > System Settings (if that makes a difference)

Program URL is https://nagiosxi.xxx.nz/nagiosxi/
External URL is blank
So from what I understand what is happening, the ajax calls are going through a firewall to get to the public IP address of the XI server, and this is causing the delay. It's possible your firewall is limiting the amount of concurrent connections and hence slowing things down.

You could:
Define:
Program URL https://private_ip_address/nagiosxi/
External URL https://nagiosxi.xxx.nz/nagiosxi/

Then when accessing it internally, access it via https://private_ip_address/nagiosxi/

or

Setup split DNS so that nagiosxi.xxx.nz resolves to a private IP address when accessing it internally, so it doesn't need to go through the firewall.

This all assumes that your nagiosxi.xxx.nz server has a private IP address. If you only have a public IP address on the server then your options are limited, as all the traffic needs to pass through the firewall to get to the external address and back again.

Does this make sense or help?
It makes sense, and I should check the routing of traffic as it maybe going through the firewall and being restricted. However does that explain why the page loads fast for me, but slow for a different user. I would have thought firewall issues would have been relevant to all users, not a subset

cheers
--Aaron

Re: Slow page loads for users

Posted: Wed May 18, 2016 8:19 pm
by Box293
acheesem wrote: However does that explain why the page loads fast for me, but slow for a different user. I would have thought firewall issues would have been relevant to all users, not a subset
Honestly I've banged my head trying to get to the bottom of these issues in the past. There may be a combination of two different issues going on here.

Let us know if my suggestion helps identify anything.

Re: Slow page loads for users

Posted: Thu May 19, 2016 6:27 am
by acheesem
Ok, so I traced the statusjson.php file to try and find out if I could hammer in some debug to see where the slowdown was occurring...

statusjson.php makes use of a coreuiproxy.inc.php, which calls statusjson.cgi

I've captured the parameters that coreuiproxy.inc.php passes to statusjson.cgi and replayed this from the command line and it is performing well, which makes me think the sluggishness is coming from the php coreuiproxy file.

Unfortunately this means I can't step through to debug the fault any more ;/ As the coreuiproxy.inc.php is encrypted/obfuscated , but ill try watching the nagiosxi database queries to see if there are any locks or odd looking db queries coming through there..

Any other suggestions welcome, ill keep poking around

cheers
--Aaron

Re: Slow page loads for users

Posted: Thu May 19, 2016 4:32 pm
by tmcdonald
Any chance we can move this to an email ticket? A remote session might be in order. Simply email [email protected] with a descriptive subject, a very brief description of the issue, and a link to this thread. You might need to email [email protected] to have your email address added to the whitelist.

Re: Slow page loads for users

Posted: Thu May 19, 2016 4:52 pm
by acheesem
tmcdonald wrote:Any chance we can move this to an email ticket? A remote session might be in order. Simply email [email protected] with a descriptive subject, a very brief description of the issue, and a link to this thread. You might need to email [email protected] to have your email address added to the whitelist.
sure will do

cheers
--Aaron

Re: Slow page loads for users

Posted: Fri May 20, 2016 9:20 am
by tmcdonald
Thanks! I'll keep an eye out and will be closing this thread once it comes in.

Re: Slow page loads for users

Posted: Mon May 23, 2016 11:59 am
by tmcdonald
Haven't seen a ticket come through - did you try and get blocked or just haven't gotten around to it?

Re: Slow page loads for users

Posted: Tue May 24, 2016 9:08 am
by ssax
Locking the thread since a ticket has been created, we will continue it there.