Nagios web interface question

Tedman Eng teng at dataway.com
Thu Sep 30 19:45:16 CEST 2004


Look for what the error says, "overlapping ScriptAlias" statements in
httpd.conf and/or /etc/httpd/conf.d/nagios.conf

http://httpd.apache.org/docs-2.0/


-----Original Message-----
From: Minkov, Ross [mailto:ross.minkov at hp.com]
Sent: Thursday, September 30, 2004 8:51 AM
To: nagios-users at lists.sourceforge.net
Subject: [Nagios-users] Nagios web interface question



Hi,

Here is my first newbie nagios question...

I just installed nagios on Fedora Core 2 using an rpm. I followed the
docs and configured some servers/services to monitor and started the
nagios service. It started up just fine. I then started apache and
started reading how to configure the nagios web interface. The
instructions I found were a little too specific to the install from
source code approach (assuming that you installed nagios in /usr/local),
but after looking in my httpd.conf file I noticed that there was a line
added at the very end:

#Include /etc/httpd/conf.d/nagios.conf

So instead of editing the httpd.conf file as per the instructions I was
reading, I just removed the # in front that very last line in my
httpd.conf file. Then I restarted httpd and here is the warning I got:


# service httpd restart
Stopping httpd:                                            [  OK  ]
Starting httpd: [Thu Sep 30 10:18:12 2004] [warn] The ScriptAlias
directive in /etc/httpd/conf.d/nagios.conf at line 1 will probably never
match because it overlaps an earlier ScriptAlias.
[Thu Sep 30 10:18:12 2004] [warn] The Alias directive in
/etc/httpd/conf.d/nagios.conf at line 9 will probably never match
because it overlaps an earlier Alias.
                                                           [  OK  ]

I can get to the nagios web interface just fine, but still want to know
why I'm getting this warning.

==============================================

No errors or warning on the nagios side:

[root at rolin conf.d]# service nagios restart
Running configuration check...done
Stopping network monitor: nagios
Starting network monitor: nagios
NAGIOS ok - status written 1 seconds ago

==============================================

[root at rolin conf]# grep ^Alias httpd.conf
Alias /icons/ "/var/www/icons/"
AliasMatch ^/manual(?:/(?:de|en|fr|ja|ko|ru))?(/.*)?$
"/var/www/manual$1"
Alias /error/ "/var/www/error/"
[root at rolin conf]#
[root at rolin conf]# grep ^ScriptAlias httpd.conf
ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"
[root at rolin conf]#
[root at rolin conf]# grep -i nagios httpd.conf
Include /etc/httpd/conf.d/nagios.conf

====================================

Below is my /etc/httpd/conf.d/nagios.conf file.

# cat /etc/httpd/conf.d/nagios.conf
ScriptAlias /nagios/cgi-bin/ /usr/lib/nagios/cgi/
<Directory /usr/lib/nagios/cgi/>
   Options ExecCGI
   order deny,allow
   deny from all
   allow from 127.0.0.1 .example.com
</Directory>

Alias /nagios/ /usr/share/nagios/
<Directory /usr/share/nagios/>
   Options None
   order deny,allow
   deny from all
   allow from 127.0.0.1 .example.com
</Directory>

##########################################

<Directory /usr/lib/nagios/cgi>
   AuthName "Nagios Access"
   AuthType Basic
   AuthUserFile /etc/nagios/htpasswd.users
   require valid-user
</Directory>

==============================================


Thanks,
Ross


-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list