I'm new to Nagios and Apache as well.
I'm trying to install it (Nagios) and play with it for a while.
A big problem is that the official documentation (as even other guides I find) are based upon compile-it-on-your-own-version, which have totally different dir-locations compared to the rpm/yum version of Nagios that I installed. That makes all of these guides very hard to follow. Anyway, I came across Max Hetrick's howto-guide @ Centos Wiki and it seems to make a lot of sense. The paths described there correspond mostly well to Fedora..
However, I'm getting an error after adding the cgi-configuration lines in httpd.conf.
Quote:
|
Starting httpd: [Mon Sep 01 00:37:19 2008] [warn] The ScriptAlias directive in /etc/httpd/conf/httpd.conf at line 993 will probably never match because it overlaps an earlier Alias.
|
The line 993 corresponds to the first line in the code bellow. And from my humble knowledge, this error message is supposed to mean that I have double aliases in the config file, which is not true. No overlaps whatsoever. Any ideas?
Thanks in advance!
Code:
ScriptAlias /nagios/cgi-bin "/usr/lib/nagios/cgi-bin"
<Directory "/usr/lib/nagios/cgi-bin">
Options ExecCGI
AllowOverride None
Order allow,deny
Allow from all
AuthName "Nagios Access"
AuthType Basic
AuthUserFile /etc/nagios/passwd
Require valid-user
</Directory>
Alias /nagios "/usr/share/nagios"
<Directory "/usr/share/nagios">
Options None
AllowOverride None
Order allow,deny
Allow from all
AuthName "Nagios Access"
AuthType Basic
AuthUserFile /etc/nagios/passwd
Require valid-user
</Directory>