Page 1 of 1
3min to load host - service Detail page
Posted: Wed May 18, 2016 7:34 am
by asardouk
Hi,
I'm using Nagios XI in LAN and via internet with a public IP. the issue is that loading host or service detail page via internet took almost 3min and with LAN network it took just 3s. I do not have any idea why this long time to load the page. Do you have already get the issue ?
Thanks,
Re: 3min to load host - service Detail page
Posted: Wed May 18, 2016 10:29 am
by bwallace
While 3 minutes is quite awhile for a page to load, it is not surprising though, given how you are accessing it and the number of variables involved. I'm betting there are devices in between client <--> XI machine introducing the slowness, it could be your ISP even.
Perhaps there is a better way, but I would do the following to get an idea of roughly where the slowness occurs and in what direction, but you'll need to install tcpdump on XI and install Wireshark on your PC and
run the captures simultaneously.
1) On your PC, have your browser up and open Wireshark but do not start capturing - just have these ready to go so you eliminate extraneous data from getting captured
2) SSH into your Nagios XI machine and start a tcpdump using this cmd:
3) On your PC start Wireshark and reproduce the issue
4) once the page fully loads, stop Wireshark and stop the tcpdump (Ctl+c) on XI.
5) View each capture in Wireshark. Identify the requests leaving your PC and note the time. Identify the same on the XI tcpdump - is there a delay? Does XI answer immediately? If not, then what about a delay in the other direction then, in between XI <--> Client.
I'd be happy to have a look at the captures if you have any doubts - simply PM them to me along with the pertinent info such as client IP, XI IP, etc - thanks -
Re: 3min to load host - service Detail page
Posted: Wed May 18, 2016 11:46 pm
by Box293
asardouk wrote:I'm using Nagios XI in LAN and via internet with a public IP. the issue is that loading host or service detail page via internet took almost 3min and with LAN network it took just 3s. I do not have any idea why this long time to load the page. Do you have already get the issue ?
When accessing the public IP of Nagios XI, are you doing it from an external location, or from inside your network from the same PC that works quickly when accessing it via the lan?
Can you go to Admin > System Config > Manage System Config
What is in your "Program URL" and "External URL" fields?
Does you Program URL resolve to an internal IP address?
Re: 3min to load host - service Detail page
Posted: Thu May 19, 2016 5:10 am
by asardouk
Box293 wrote:asardouk wrote:I'm using Nagios XI in LAN and via internet with a public IP. the issue is that loading host or service detail page via internet took almost 3min and with LAN network it took just 3s. I do not have any idea why this long time to load the page. Do you have already get the issue ?
When accessing the public IP of Nagios XI, are you doing it from an external location, or from inside your network from the same PC that works quickly when accessing it via the lan?
Can you go to Admin > System Config > Manage System Config
What is in your "Program URL" and "External URL" fields?
Does you Program URL resolve to an internal IP address?
Program URL is an internal IP that you can access from our company network only.
External URL is an IP that you can use from everywhere.
Re: 3min to load host - service Detail page
Posted: Thu May 19, 2016 5:17 am
by asardouk
bwallace wrote:While 3 minutes is quite awhile for a page to load, it is not surprising though, given how you are accessing it and the number of variables involved. I'm betting there are devices in between client <--> XI machine introducing the slowness, it could be your ISP even.
Perhaps there is a better way, but I would do the following to get an idea of roughly where the slowness occurs and in what direction, but you'll need to install tcpdump on XI and install Wireshark on your PC and
run the captures simultaneously.
1) On your PC, have your browser up and open Wireshark but do not start capturing - just have these ready to go so you eliminate extraneous data from getting captured
2) SSH into your Nagios XI machine and start a tcpdump using this cmd:
3) On your PC start Wireshark and reproduce the issue
4) once the page fully loads, stop Wireshark and stop the tcpdump (Ctl+c) on XI.
5) View each capture in Wireshark. Identify the requests leaving your PC and note the time. Identify the same on the XI tcpdump - is there a delay? Does XI answer immediately? If not, then what about a delay in the other direction then, in between XI <--> Client.
I'd be happy to have a look at the captures if you have any doubts - simply PM them to me along with the pertinent info such as client IP, XI IP, etc - thanks -
In the tcpdump i think that all is good.
This is a capture from wireshark :
2016-05-19 12_17_03-2016-05-19 12_11_33-test2 - Windows Photo Viewer.png
Re: 3min to load host - service Detail page
Posted: Thu May 19, 2016 9:46 am
by rkennedy
This is most likely a DNS issue since it works fine internally. Please post a screenshot of your system settings page, as well as your entire /etc/hosts file for us to look at. Lastly, what URL's are you using internally / externally to load the page?
Re: 3min to load host - service Detail page
Posted: Wed May 25, 2016 5:49 am
by asardouk
rkennedy wrote:This is most likely a DNS issue since it works fine internally. Please post a screenshot of your system settings page, as well as your entire /etc/hosts file for us to look at. Lastly, what URL's are you using internally / externally to load the page?
2016-05-25 12_47_10-Nagios XI - Administration.png
Code: Select all
127.0.0.1 localhost
10.50.50.116 nagiosxi
188.64.77.158 erganag.fr
external URL : 188.64.77.158
internal URL : 10.50.50.116
Re: 3min to load host - service Detail page
Posted: Wed May 25, 2016 10:43 am
by rkennedy
Please adjust your hosts file to reflect this, and see if it helps. There might be a DNS loop going on so I'd like to rule that out -
Code: Select all
127.0.0.1 localhost nagiosxi erganag.fr