Page 1 of 1

Opening Nagios in browser throws apache error

Posted: Wed Feb 25, 2015 5:23 am
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

Re: Opening Nagios in browser throws apache error

Posted: Wed Feb 25, 2015 10:22 am
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!

Re: Opening Nagios in browser throws apache error

Posted: Thu Feb 26, 2015 12:32 am
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.

Re: Opening Nagios in browser throws apache error

Posted: Thu Feb 26, 2015 10:08 am
by ssax
Please post the output of the following:

Code: Select all

ls -ld /usr/local/nagios/share

Re: Opening Nagios in browser throws apache error

Posted: Thu Feb 26, 2015 12:32 pm
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.

Re: Opening Nagios in browser throws apache error

Posted: Thu Feb 26, 2015 11:12 pm
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>

Re: Opening Nagios in browser throws apache error

Posted: Fri Feb 27, 2015 10:03 am
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?

Re: Opening Nagios in browser throws apache error

Posted: Thu Mar 12, 2015 1:02 am
by nakshis
Ok thanks,

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

Thanks,
Nakshi

Re: Opening Nagios in browser throws apache error

Posted: Thu Mar 12, 2015 1:13 am
by Box293