Page 1 of 1
Connection timed out after 15001 milliseconds
Posted: Wed Nov 25, 2020 8:50 am
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..
Re: Connection timed out after 15001 milliseconds
Posted: Wed Nov 25, 2020 6:32 pm
by benjaminsmith
Hi,
It's might not be able to resolve that domain. Does the following command resolve to the correct IP address?
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
Re: Connection timed out after 15001 milliseconds
Posted: Thu Nov 26, 2020 2:36 am
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>
Re: Connection timed out after 15001 milliseconds
Posted: Thu Nov 26, 2020 2:55 am
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..
Re: Connection timed out after 15001 milliseconds
Posted: Mon Nov 30, 2020 1:35 am
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..
Re: Connection timed out after 15001 milliseconds
Posted: Mon Nov 30, 2020 11:55 am
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.