Double Menu after visiting Nagios "Home" Page
Re: Double Menu after visiting Nagios "Home" Page
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.
- Attachments
-
- httpd.conf.zip
- (11.39 KiB) Downloaded 242 times
Re: Double Menu after visiting Nagios "Home" Page
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*Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Re: Double Menu after visiting Nagios "Home" Page
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:
The PHP.conf is:
The nagios.conf is:
[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>
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
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
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!
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Double Menu after visiting Nagios "Home" Page
PM Sent! Thanks!
Re: Double Menu after visiting Nagios "Home" Page
Run the following command in terminal:
Let me know if this fixed your issue.
Code: Select all
mv /usr/local/nagios/share/ssi/common-* /tmpBe sure to check out our Knowledgebase for helpful articles and solutions!
Re: Double Menu after visiting Nagios "Home" Page
That fixed the problem! Thanks.