Opening Nagios in browser throws apache error

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
nakshis
Posts: 4
Joined: Wed Feb 25, 2015 5:17 am

Opening Nagios in browser throws apache error

Post by nakshis »

Hi,

I installed Nagios Core by using the Installation guide , but when i try to open it in browser it shows me apache error.

What should I do?

Thanks
Nakshi
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: Opening Nagios in browser throws apache error

Post by jdalrymple »

Can you give us some additional detail?

1) What OS?
2) What guide did you use?
3) What is the error you're getting?

Thanks!
nakshis
Posts: 4
Joined: Wed Feb 25, 2015 5:17 am

Re: Opening Nagios in browser throws apache error

Post by nakshis »

Hi,

The OS used is CentOS 6.4 32 bit.

The guide used for installing Nagios was "Installing_Nagios_Core_From_Source.pdf" which was downloaded from Nagios Web site

I check for Nagios Services, they are running . The error on opening Nagios in browser is as below:

HTTP Status 404 - /nagios
description The requested resource (/nagios) is not available.

Thanks.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Opening Nagios in browser throws apache error

Post by ssax »

Please post the output of the following:

Code: Select all

ls -ld /usr/local/nagios/share
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: Opening Nagios in browser throws apache error

Post by jdalrymple »

Sounds like your Alias directive for your Apache config is missing. Did you do the portion in that tutorial:

Code: Select all

make install-webconf
If so did you restart apache afterwards?

do you have a file /etc/httpd/conf.d/nagios.conf? If so please post its contents.
nakshis
Posts: 4
Joined: Wed Feb 25, 2015 5:17 am

Re: Opening Nagios in browser throws apache error

Post by nakshis »

Hi,

Output of ls -ld /usr/local/nagios/share is

ls: cannot access /usr/local/nagios/share: No such file or directory

and the contents of nagios.conf are as below :

# SAMPLE CONFIG SNIPPETS FOR APACHE WEB SERVER
#
# This file contains examples of entries that need
# to be incorporated into your Apache web server
# configuration file. Customize the paths, etc. as
# needed to fit your system.

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>
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: Opening Nagios in browser throws apache error

Post by jdalrymple »

Something went terribly wrong with your install if you don't have a /usr/local/nagios/share directory.

The part of the process that would have put this directory in place for you would be the `make install` command. Did you run process during your install?
nakshis
Posts: 4
Joined: Wed Feb 25, 2015 5:17 am

Re: Opening Nagios in browser throws apache error

Post by nakshis »

Ok thanks,

can I get a proper installation guide for installing Nagios on Cent OS 6.4?

Thanks,
Nakshi
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Opening Nagios in browser throws apache error

Post by Box293 »

As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked