Double Menu after visiting Nagios "Home" Page

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
MLaing
Posts: 18
Joined: Wed Jul 18, 2012 2:38 pm

Re: Double Menu after visiting Nagios "Home" Page

Post 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.
Attachments
httpd.conf.zip
(11.39 KiB) Downloaded 243 times
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Double Menu after visiting Nagios "Home" Page

Post 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*
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.
MLaing
Posts: 18
Joined: Wed Jul 18, 2012 2:38 pm

Re: Double Menu after visiting Nagios "Home" Page

Post 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>
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Double Menu after visiting Nagios "Home" Page

Post 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!
Be sure to check out our Knowledgebase for helpful articles and solutions!
MLaing
Posts: 18
Joined: Wed Jul 18, 2012 2:38 pm

Re: Double Menu after visiting Nagios "Home" Page

Post by MLaing »

PM Sent! Thanks!
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Double Menu after visiting Nagios "Home" Page

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
MLaing
Posts: 18
Joined: Wed Jul 18, 2012 2:38 pm

Re: Double Menu after visiting Nagios "Home" Page

Post by MLaing »

That fixed the problem! Thanks.
Locked