I install nagios 2 from ports and after install I do this
I go to this directory
and run these commands
and after that I make this file
in this Directory
and I put these line in that file
and after that I restart apache
but when I type in firefox
I see this error
and Is see error about 404
but when I see this command
I see this
and I can not access to nagios web page
when I run this command
I do not see about starting nagios
Where I make mistake ?
I go to this directory
Code:
cd /usr/local/etc/nagios
Code:
cd /usr/local/etc/nagios
cp cgi.cfg-sample cgi.cfg
cp nagios.cfg-sample nagios.cfg
cp resource.cfg-sample resource.cfg
cd objects
cp commands.cfg-sample commands.cfg
cp printer.cfg-sample printer.cfg
cp localhost.cfg-sample localhost.cfg
cp switch.cfg-sample switch.cfg
cp tempelates.cfg-sample tempelates.cfg
cp timeperiods.cfg-sample timeperiods.cfg
cp contacts.cfg-sample contacts.cfg
Code:
nagios.conf
Code:
/usr/local/etc/apache22/Includes
Code:
<Directory /usr/local/www/nagios>
Options None
AllowOverride None
Order allow,deny
Allow from all
AuthName "Nagios Access"
Authtype Basic
AuthUserFile /usr/local/etc/nagios/htpasswd.users
Require valid-user
</Directory>
<Directory /usr/local/www/nagios/cgi-bin>
Options ExecCGI
AllowOverride None
Order allow,deny
Allow from all
AuthName "Nagios Access"
Authtype Basic
AuthUserFile /usr/local/etc/nagios/htpasswd.users
Require valid-user
</Directory>
ScriptAlias /nagios/cgi-bin/ /usr/local/www/nagios/cgi-bin/
Alias /nagios/ /usr/local/www/nagios/
but when I type in firefox
Code:
http://192.168.0.58/nagios/
Code:
The requested URL /nagios/ was not found on this server
but when I see this command
Code:
tail -f /var/log/http-error.log
Code:
Wed Apr 28 13:07:15 2010] [error] [client 192.168.0.58] File does not exist: /usr/local/www/apache22/data/nagios
when I run this command
Code:
/usr/local/etc/rc.d/nagios start
Where I make mistake ?