After install, url does not open nagios, /usr/local/nagios/s


#1

followed install documentation at docs/quickstart-fedora.html … no install errors present. When I go to open up the site, it asks for the .htpasswd credentials, which work fine, but then get:

Forbidden
You don’t have permission to access /nagios/ on this server.

from error_log:
[Tue Jul 22 11:53:48 2008] [error] [client x.x.x.x] Directory index forbidden by rule: /usr/local/nagios/share/

Here’s my question … where are the files???

[root@ nagios-3.0.3]# ls -l /usr/local/nagios/share/
total 32
drwxrwxr-x 2 nagios nagios 4096 Jul 22 09:54 contexthelp
drwxrwxr-x 3 nagios nagios 4096 Jul 22 09:54 docs
drwxrwxr-x 3 nagios nagios 4096 Jul 22 09:54 images
drwxr-xr-x 4 root root 4096 Jul 22 10:07 locale
drwxrwxr-x 2 nagios nagios 4096 Jul 22 09:54 media
-rw-rw-r-- 1 nagios nagios 26 Jul 22 11:00 robots.txt
drwxrwxr-x 2 nagios nagios 4096 Jul 22 09:54 ssi
drwxrwxr-x 2 nagios nagios 4096 Jul 22 09:54 stylesheets
[root@ nagios-3.0.3]#

recursive listing …

[root@ nagios-3.0.3]# ls -lR /usr/local/nagios/share/
/usr/local/nagios/share/:
total 32
drwxrwxr-x 2 nagios nagios 4096 Jul 22 09:54 contexthelp
drwxrwxr-x 3 nagios nagios 4096 Jul 22 09:54 docs
drwxrwxr-x 3 nagios nagios 4096 Jul 22 09:54 images
drwxr-xr-x 4 root root 4096 Jul 22 10:07 locale
drwxrwxr-x 2 nagios nagios 4096 Jul 22 09:54 media
-rw-rw-r-- 1 nagios nagios 26 Jul 22 11:00 robots.txt
drwxrwxr-x 2 nagios nagios 4096 Jul 22 09:54 ssi
drwxrwxr-x 2 nagios nagios 4096 Jul 22 09:54 stylesheets

/usr/local/nagios/share/contexthelp:
total 0

/usr/local/nagios/share/docs:
total 4
drwxrwxr-x 2 nagios nagios 4096 Jul 22 09:54 images

/usr/local/nagios/share/docs/images:
total 0

/usr/local/nagios/share/images:
total 4
drwxrwxr-x 2 nagios nagios 4096 Jul 22 09:54 logos

/usr/local/nagios/share/images/logos:
total 0

/usr/local/nagios/share/locale:
total 8
drwxr-xr-x 3 root root 4096 Jul 22 10:07 de
drwxr-xr-x 3 root root 4096 Jul 22 10:07 fr

/usr/local/nagios/share/locale/de:
total 4
drwxr-xr-x 2 root root 4096 Jul 22 10:07 LC_MESSAGES

/usr/local/nagios/share/locale/de/LC_MESSAGES:
total 12
-rw-r–r-- 1 nagios nagios 10112 Jul 22 10:07 nagios-plugins.mo

/usr/local/nagios/share/locale/fr:
total 4
drwxr-xr-x 2 root root 4096 Jul 22 10:07 LC_MESSAGES

/usr/local/nagios/share/locale/fr/LC_MESSAGES:
total 96
-rw-r–r-- 1 nagios nagios 90759 Jul 22 10:07 nagios-plugins.mo

/usr/local/nagios/share/media:
total 0

/usr/local/nagios/share/ssi:
total 0

/usr/local/nagios/share/stylesheets:
total 0
[root@ nagios-3.0.3]#

this was from make install:

[root@ nagios-3.0.3]# make install
cd ./base && make install
make[1]: Entering directory /usr/src/nagios-3.0.3/base' make install-basic make[2]: Entering directory/usr/src/nagios-3.0.3/base’
/usr/bin/install -c -m 775 -o nagios -g nagios -d /usr/local/nagios/bin
/usr/bin/install -c -m 774 -o nagios -g nagios nagios /usr/local/nagios/bin
/usr/bin/install -c -m 774 -o nagios -g nagios nagiostats /usr/local/nagios/bin
make[2]: Leaving directory /usr/src/nagios-3.0.3/base' make strip-post-install make[2]: Entering directory/usr/src/nagios-3.0.3/base’
/usr/bin/strip /usr/local/nagios/bin/nagios
/usr/bin/strip /usr/local/nagios/bin/nagiostats
make[2]: Leaving directory /usr/src/nagios-3.0.3/base' make[1]: Leaving directory/usr/src/nagios-3.0.3/base’
cd ./cgi && make install
make[1]: Entering directory /usr/src/nagios-3.0.3/cgi' make install-basic make[2]: Entering directory/usr/src/nagios-3.0.3/cgi’
/usr/bin/install -c -m 775 -o nagios -g nagios -d /usr/local/nagios/sbin
for file in *.cgi; do
/usr/bin/install -c -m 775 -o nagios -g nagios $file /usr/local/nagios/sbin;
done
make[2]: Leaving directory /usr/src/nagios-3.0.3/cgi' make strip-post-install make[2]: Entering directory/usr/src/nagios-3.0.3/cgi’
for file in *.cgi; do
/usr/bin/strip /usr/local/nagios/sbin/$file;
done
make[2]: Leaving directory /usr/src/nagios-3.0.3/cgi' make[1]: Leaving directory/usr/src/nagios-3.0.3/cgi’
cd ./html && make install
make[1]: Entering directory /usr/src/nagios-3.0.3/html' /usr/bin/install -c -m 775 -o nagios -g nagios -d /usr/local/nagios/share /usr/bin/install -c -m 775 -o nagios -g nagios -d /usr/local/nagios/share/media /usr/bin/install -c -m 775 -o nagios -g nagios -d /usr/local/nagios/share/stylesheets /usr/bin/install -c -m 775 -o nagios -g nagios -d /usr/local/nagios/share/contexthelp /usr/bin/install -c -m 775 -o nagios -g nagios -d /usr/local/nagios/share/docs /usr/bin/install -c -m 775 -o nagios -g nagios -d /usr/local/nagios/share/docs/images /usr/bin/install -c -m 775 -o nagios -g nagios -d /usr/local/nagios/share/images /usr/bin/install -c -m 775 -o nagios -g nagios -d /usr/local/nagios/share/images/logos /usr/bin/install -c -m 775 -o nagios -g nagios -d /usr/local/nagios/share/ssi /usr/bin/install -c -m 664 -o nagios -g nagios robots.txt /usr/local/nagios/share /usr/bin/install -c -m 664 -o nagios -g nagios docs/robots.txt /usr/local/nagios/share/docs /usr/bin/install: cannot statdocs/robots.txt’: No such file or directory
make[1]: *** [install] Error 1
make[1]: Leaving directory `/usr/src/nagios-3.0.3/html’
make: *** [install] Error 2
[root@ nagios-3.0.3]#


#2

Ok… as I continue to work on this… I coppied files from the /usr/src directory to the /var/local/nagios/share dir, now I’m able to get main site up but all the links on the left reference @CGIURL@. can anyone help w/ a fix for why the make all/install did not properly move the HTML and CGI files?