3min to load host - service Detail page

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
asardouk
Posts: 31
Joined: Thu Feb 25, 2016 4:49 am

3min to load host - service Detail page

Post 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,
You do not have the required permissions to view the files attached to this post.
Nagios XI 5.2.5 - CentOS Linux release 7.2.1511
bwallace
Posts: 1145
Joined: Tue Nov 17, 2015 1:57 pm

Re: 3min to load host - service Detail page

Post 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:

Code: Select all

tcpdump -s 0 -i any -w Test.pcap
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 -
Be sure to check out the Knowledgebase for helpful articles and solutions!
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: 3min to load host - service Detail page

Post 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?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
asardouk
Posts: 31
Joined: Thu Feb 25, 2016 4:49 am

Re: 3min to load host - service Detail page

Post 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.
Nagios XI 5.2.5 - CentOS Linux release 7.2.1511
asardouk
Posts: 31
Joined: Thu Feb 25, 2016 4:49 am

Re: 3min to load host - service Detail page

Post 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:

Code: Select all

tcpdump -s 0 -i any -w Test.pcap
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
You do not have the required permissions to view the files attached to this post.
Nagios XI 5.2.5 - CentOS Linux release 7.2.1511
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: 3min to load host - service Detail page

Post 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?
Former Nagios Employee
asardouk
Posts: 31
Joined: Thu Feb 25, 2016 4:49 am

Re: 3min to load host - service Detail page

Post 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
You do not have the required permissions to view the files attached to this post.
Nagios XI 5.2.5 - CentOS Linux release 7.2.1511
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: 3min to load host - service Detail page

Post 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
Former Nagios Employee
Locked