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
Opening Nagios in browser throws apache error
-
- Skynet Drone
- Posts: 2620
- Joined: Wed Feb 11, 2015 1:56 pm
Re: Opening Nagios in browser throws apache error
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!
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
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.
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
Please post the output of the following:
Code: Select all
ls -ld /usr/local/nagios/share
-
- Skynet Drone
- Posts: 2620
- Joined: Wed Feb 11, 2015 1:56 pm
Re: Opening Nagios in browser throws apache error
Sounds like your Alias directive for your Apache config is missing. Did you do the portion in that tutorial:
If so did you restart apache afterwards?
do you have a file /etc/httpd/conf.d/nagios.conf? If so please post its contents.
Code: Select all
make install-webconf
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
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>
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>
-
- Skynet Drone
- Posts: 2620
- Joined: Wed Feb 11, 2015 1:56 pm
Re: Opening Nagios in browser throws apache error
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?
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
Ok thanks,
can I get a proper installation guide for installing Nagios on Cent OS 6.4?
Thanks,
Nakshi
can I get a proper installation guide for installing Nagios on Cent OS 6.4?
Thanks,
Nakshi
- 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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.