Nagios not found on http server

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
tariqondego
Posts: 85
Joined: Fri Mar 28, 2014 6:18 am

Nagios not found on http server

Post 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
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Nagios not found on http server

Post by tmcdonald »

What Ubuntu version are you on? I know recent versions have had some issues.
Former Nagios employee
tariqondego
Posts: 85
Joined: Fri Mar 28, 2014 6:18 am

Re: Nagios not found on http server

Post by tariqondego »

Ubuntu 14.04
chris.fixter
Posts: 22
Joined: Wed Jun 18, 2014 4:15 am

Re: Nagios not found on http server

Post 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>
tariqondego
Posts: 85
Joined: Fri Mar 28, 2014 6:18 am

Re: Nagios not found on http server

Post by tariqondego »

I have done the apache mapping as instructed,still getting the same error.

Please advise.
tariqondego
Posts: 85
Joined: Fri Mar 28, 2014 6:18 am

Re: Nagios not found on http server

Post 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
Locked