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,
3min to load host - service Detail page
3min to load host - service Detail page
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
Re: 3min to load host - service Detail page
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 -
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.pcap4) 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!
- 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
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?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 ?
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.
Re: 3min to load host - service Detail page
Box293 wrote: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?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 ?
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
Re: 3min to load host - service Detail page
In the tcpdump i think that all is good.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 issueCode: Select all
tcpdump -s 0 -i any -w Test.pcap
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 -
This is a capture from wireshark :
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
Re: 3min to load host - service Detail page
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
Re: 3min to load host - service Detail page
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?
Code: Select all
127.0.0.1 localhost
10.50.50.116 nagiosxi
188.64.77.158 erganag.fr
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
Re: 3min to load host - service Detail page
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