Page 2 of 2

Re: lose the UI for a few minutes, constantly

Posted: Wed Feb 28, 2018 7:41 am
by DMKatIBM
Directory is empty. But this problem only started recently (it was always empty, even when this wasn't happening):

Code: Select all

[root@dal10-build-Nagios ~]# ls -l /var/www/html
total 0
[root@dal10-build-Nagios ~]# ls -ld /var/www/html
drwxr-xr-x. 2 root root 4096 Oct  3 08:37 /var/www/html
[root@dal10-build-Nagios ~]# 
Here's the conf file:

Code: Select all

# SAMPLE CONFIG SNIPPETS FOR APACHE WEB SERVER
#
# This file contains examples of entries that need
# to be incorporated into your Apache web server
# configuration file.  Customize the paths, etc. as
# needed to fit your system.

ScriptAlias /nagios/cgi-bin "/usr/local/nagios/sbin"

<Directory "/usr/local/nagios/sbin">
#  SSLRequireSSL
   Options ExecCGI
   AllowOverride None
   <IfVersion >= 2.3>
      <RequireAll>
         Require all granted
#        Require host 127.0.0.1

         AuthName "Nagios Access"
         AuthType Basic
         AuthUserFile /usr/local/nagios/etc/htpasswd.users
         Require valid-user
      </RequireAll>
   </IfVersion>
   <IfVersion < 2.3>
      Order allow,deny
      Allow from all
#     Order deny,allow
#     Deny from all
#     Allow from 127.0.0.1

      AuthName "Nagios Access"
      AuthType Basic
      AuthUserFile /usr/local/nagios/etc/htpasswd.users
      Require valid-user
   </IfVersion>
</Directory>

Alias /nagios "/usr/local/nagios/share"

<Directory "/usr/local/nagios/share">
#  SSLRequireSSL
   Options None
   AllowOverride None
   <IfVersion >= 2.3>
      <RequireAll>
         Require all granted
#        Require host 127.0.0.1

         AuthName "Nagios Access"
         AuthType Basic
         AuthUserFile /usr/local/nagios/etc/htpasswd.users
         Require valid-user
      </RequireAll>
   </IfVersion>
   <IfVersion < 2.3>
      Order allow,deny
      Allow from all
#     Order deny,allow
#     Deny from all
#     Allow from 127.0.0.1

      AuthName "Nagios Access"
      AuthType Basic
      AuthUserFile /usr/local/nagios/etc/htpasswd.users
      Require valid-user
   </IfVersion>
</Directory>

Re: lose the UI for a few minutes, constantly

Posted: Wed Feb 28, 2018 5:36 pm
by npolovenko
@DMKatIBM, Please open up the /usr/local/nagios/etc/cgi.cfg file, and find the refresh_rate option. It controls how fast the status cgi updates. It may be taking too long for Nagios to update all the status CGI's, so please increase that value:

Code: Select all

# REFRESH RATE
# This option allows you to specify the refresh rate in seconds
# of various CGIs (status, statusmap, extinfo, and outages).

refresh_rate=90
Also, please run the following command and post the output:

Code: Select all

ps -ef 

Re: lose the UI for a few minutes, constantly

Posted: Fri Mar 02, 2018 8:17 am
by DMKatIBM
I ended up bumping up the timeout in ssl.conf (doubling the default of what is listed here):

SSLSessionCache shmcb:/run/httpd/sslcache(512000)
SSLSessionCacheTimeout 300

Which appears to have resolved the problem.

Thanks for all the suggestions provided.

Re: lose the UI for a few minutes, constantly

Posted: Fri Mar 02, 2018 12:58 pm
by scottwilkerson
glad it is resolved