Page 2 of 2
Re: Double Menu after visiting Nagios "Home" Page
Posted: Thu Jul 11, 2013 9:59 am
by MLaing
I had a coworker who has since left the company, but I don't think either of us modified it. It looks stock CentOS. I've attached it in case you want to have a peek.
Re: Double Menu after visiting Nagios "Home" Page
Posted: Fri Jul 12, 2013 9:38 am
by abrist
Well, just as you expected, that file was vanilla as well. Do you have multiple files in your vhost directory? If so, post the content of those files (nag*) in code wraps:
Code: Select all
ls -la /etc/httpd/conf.d/
cat /etc/httpd/conf.d/nag*
Re: Double Menu after visiting Nagios "Home" Page
Posted: Fri Jul 12, 2013 1:20 pm
by MLaing
There isn't much in that folder. Just 3 .conf files.
[root@nagios conf.d]# ls -la
total 24
drwxr-xr-x. 2 root root 4096 Jul 1 13:58 .
drwxr-xr-x. 4 root root 4096 Jul 1 13:58 ..
-rw-r--r--. 1 root root 1010 Jun 14 2012 nagios.conf
-rw-r--r--. 1 root root 674 Feb 21 20:56 php.conf
-rw-r--r--. 1 root root 392 May 13 17:12 README
-rw-r--r--. 1 root root 299 Apr 29 03:09 welcome.conf
I've already posted the Nagios.conf
The welcome.conf is:
Code: Select all
#
# This configuration file enables the default "Welcome"
# page if there is no default index page present for
# the root URL. To disable the Welcome page, comment
# out all the lines below.
#
<LocationMatch "^/+$">
Options -Indexes
ErrorDocument 403 /error/noindex.html
</LocationMatch>
The PHP.conf is:
Code: Select all
#
# PHP is an HTML-embedded scripting language which attempts to make it
# easy for developers to write dynamically generated webpages.
#
<IfModule prefork.c>
LoadModule php5_module modules/libphp5.so
</IfModule>
<IfModule worker.c>
LoadModule php5_module modules/libphp5-zts.so
</IfModule>
#
# Cause the PHP interpreter to handle files with a .php extension.
#
AddHandler php5-script .php
AddType text/html .php
#
# Add index.php to the list of files that will be served as directory
# indexes.
#
DirectoryIndex index.php
#
# Uncomment the following line to allow PHP to pretty-print .phps
# files as PHP source code:
#
#AddType application/x-httpd-php-source .phps
The nagios.conf is:
Code: Select all
# SAMPLE CONFIG SNIPPETS FOR APACHE WEB SERVER
# Last Modified: 11-26-2005
#
# 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
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
</Directory>
Alias /nagios "/usr/local/nagios/share"
<Directory "/usr/local/nagios/share">
# 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 Access"
AuthType Basic
AuthUserFile /usr/local/nagios/etc/htpasswd.users
Require valid-user
</Directory>
Re: Double Menu after visiting Nagios "Home" Page
Posted: Mon Jul 15, 2013 1:17 pm
by lmiltchev
Tar up (or zip up) the "/usr/local/nagios/share" directory and send it to me via PM. We will try to recreate the issue in house and find a solution for it. Thanks!
Re: Double Menu after visiting Nagios "Home" Page
Posted: Mon Jul 15, 2013 3:13 pm
by MLaing
PM Sent! Thanks!
Re: Double Menu after visiting Nagios "Home" Page
Posted: Mon Jul 15, 2013 4:14 pm
by lmiltchev
Run the following command in terminal:
Code: Select all
mv /usr/local/nagios/share/ssi/common-* /tmp
Let me know if this fixed your issue.
Re: Double Menu after visiting Nagios "Home" Page
Posted: Tue Jul 16, 2013 10:29 am
by MLaing
That fixed the problem! Thanks.