Page 1 of 1
Nagios not found on http server
Posted: Fri Jul 18, 2014 8:14 am
by tariqondego
http://nagios.sourceforge.net/docs/3_0/ ... buntu.html
After following each step of the above guide,i get error:
Code: Select all
Not Found
The requested URL /nagios/ was not found on this server.
Apache/2.4.7 (Ubuntu) Server at 192.168.253.59 Port 80
I am installing core 4.0.7
Please advise
Re: Nagios not found on http server
Posted: Fri Jul 18, 2014 9:28 am
by tmcdonald
What Ubuntu version are you on? I know recent versions have had some issues.
Re: Nagios not found on http server
Posted: Mon Jul 21, 2014 1:31 am
by tariqondego
Ubuntu 14.04
Re: Nagios not found on http server
Posted: Mon Jul 21, 2014 1:43 am
by chris.fixter
Before you find a fix for the installer, you can manual fix this by creating apache mapping.
There should be a nagios.conf file from your installation package. Copy this file to /etc/apache2/conf.d and restart apache.
If you are not able to find the nagios.conf file, simple create one with the follow apache config.
Code: Select all
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>
Re: Nagios not found on http server
Posted: Mon Jul 21, 2014 2:58 am
by tariqondego
I have done the apache mapping as instructed,still getting the same error.
Please advise.
Re: Nagios not found on http server
Posted: Mon Jul 21, 2014 5:00 am
by tariqondego
Sorted,the below link provided by @Box293.
http://wellsie.net/p/512/
Apparently Nagios Core install scripts wern’t well tested for Debian systems.
The solution is to install the Apache2 config manually:
[root]$ /usr/bin/install -c -m 644 sample-config/httpd.conf /etc/apache2/conf-available/nagios.conf
[root]$ ln -s /etc/apache2/conf-available/nagios.conf /etc/apache2/conf-enabled/nagios.conf