Connection timed out after 15001 milliseconds

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
erkanerturk
Posts: 53
Joined: Wed Jan 16, 2019 4:35 am

Connection timed out after 15001 milliseconds

Post by erkanerturk »

Hi

when I try to login XI GUI. it waits 15 seconds, then i succeed to login..
in the logs i see the following (ssl_error_log)

[Wed Nov 25 16:42:20.385994 2020] [:error] [pid 29081] [client 192.168.5.6:40034] Connection timed out after 15001 milliseconds, referer: https://Nagios.local/nagiosxi/login.php

what is the reason for this wait..
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Connection timed out after 15001 milliseconds

Post by benjaminsmith »

Hi,

It's might not be able to resolve that domain. Does the following command resolve to the correct IP address?

Code: Select all

nslookup Nagios.local
Also, go to Admin > System Settings > General and make sure you have the correct URL settings.

Lastly, I'd like to review the /etc/httpd/conf.d/nagiosxi.conf file. Please post it to the thread.

Best Regards,
Benjamin
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
erkanerturk
Posts: 53
Joined: Wed Jan 16, 2019 4:35 am

Re: Connection timed out after 15001 milliseconds

Post by erkanerturk »

Hi

name resolution is OK
settings are OK.

file is the following
<Directory "/usr/local/nagiosxi/html">
# SSLRequireSSL
Options None
AllowOverride None
Order allow,deny
Allow from all
# Order deny,allow
# Deny from all
# Allow from 127.0.0.1
# AuthName "Nagios XI"
# AuthType Basic
# AuthUserFile /usr/local/nagiosxi/etc/htpasswd.users
# Require valid-user
Require all granted
</Directory>

Alias /nagiosxi "/usr/local/nagiosxi/html"

# Special configuration to allow .htaccess in custom includes
<Directory "/usr/local/nagiosxi/html/includes/components/custom-includes">
AllowOverride All
Options None
Require all granted
</Directory>

# Special config to deny access to deployment
<Directory "/usr/local/nagiosxi/html/config/deployment">
AllowOverride All
Options None
Require all granted
</Directory>

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule nagiosxi/api/v1/(.*)$ /usr/local/nagiosxi/html/api/v1/index.php?request=$1 [QSA,NC,L]
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
</IfModule>

# Special config to deny access to deployment
<Directory "/usr/local/nagiosxi/html/config/deployment">
AllowOverride All
Options None
</Directory>

# Special config to deny access to nocscreen audio uploads
<Directory "/usr/local/nagiosxi/html/sounds">
AllowOverride All
Options None
</Directory>
erkanerturk
Posts: 53
Joined: Wed Jan 16, 2019 4:35 am

Re: Connection timed out after 15001 milliseconds

Post by erkanerturk »

Hi
i think i have found the answer
nagiosxi tries to resolve api.nagios.com.
when i put this to /etc/hosts file pointing to nagios server's own IP adress. i logged in instantly..

can i use this method? or how can i disable api.nagios.com resolution ?

thanks..
erkanerturk
Posts: 53
Joined: Wed Jan 16, 2019 4:35 am

Re: Connection timed out after 15001 milliseconds

Post by erkanerturk »

Hi
I think you hesitated to disable api.nagios.com query.
i only want to recover from latency imposed by this query.

please recommend a solution..
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Connection timed out after 15001 milliseconds

Post by benjaminsmith »

Hi,

That address, api.nagios.com, is our license server. Once a day, the system checks in to the API server to retrieve Maintenance Status for the license so it can prompt you when the license is about to expire.

For some reason, it looks like it's taking longer to resolve this domain. You can add this lookup to the /etc/hosts file and let's also disable the regular updates checks, go to Admin -> System Settings -> Uncheck Automatically Check for Updates.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked