Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
03-02-2009, 05:41 AM
|
#1
|
LQ Newbie
Registered: Jan 2006
Posts: 7
Rep:
|
Error when access Nagios!
Hi all, I’m newbie in Nagios!
I’ve install nagios-3.1.0 in FC6 by Nagios page’s introduction and haven’t error.
But, when I start web page www.localhost/nagios , access by nagiosadmin, it’s have error “You don't have permission to access /nagios/ on this server”.
How I fix this error? Please help me! thanks
|
|
|
03-02-2009, 06:02 AM
|
#2
|
Senior Member
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,638
Rep: 
|
The directory under which you have installed nagios should have permissions so that your web server can run it. Look what are the permissions on the directory. Also find out which user the web server is running as and allow that user to execute the files in nagios directory.
|
|
|
03-03-2009, 10:37 PM
|
#3
|
LQ Newbie
Registered: Jan 2006
Posts: 7
Original Poster
Rep:
|
thanks for help!
I set permission
chmod -R 777 /usr/local/nagios
and
chown -R apache /usr/local/nagios
but ... it's still error!
now, how must i config to fix error!?
please help me...
|
|
|
03-03-2009, 10:51 PM
|
#4
|
Senior Member
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,638
Rep: 
|
Is your web directory under /usr/local/nagios? It should have been under your web root.
|
|
|
03-04-2009, 01:48 AM
|
#5
|
LQ Newbie
Registered: Jan 2006
Posts: 7
Original Poster
Rep:
|
Yes! I think so...
because /var/log/httpd/error file have "Directory index forbidden by Option directive: /usr/local/nagios/share"
but i don't know how to fix error!?
|
|
|
03-04-2009, 02:35 AM
|
#6
|
Senior Member
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,638
Rep: 
|
Look into your web server configuration directory if the virtual host is set for Nagios. It should be set to directory. You will need to apply correct permissions on that directory that has been set in your web config directory.
|
|
|
03-04-2009, 03:20 AM
|
#7
|
LQ Newbie
Registered: Jan 2006
Posts: 7
Original Poster
Rep:
|
I see this config in /etc/httpd/conf.d/nagios.conf, and I think it's configed by Nagios.
But ... still error!
ScriptAlias /nagios/cgi-bin "/usr/local/nagios/sbin"
<Directory "/usr/local/nagios/sbin">
Options ExecCGI
AllowOverride None
Order allow,deny
Allow from all
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">
Options None
AllowOverride None
Order allow,deny
Allow from all
AuthName "Nagios Access"
AuthType Basic
AuthUserFile /usr/local/nagios/etc/htpasswd.users
Require valid-user
</Directory>
|
|
|
03-04-2009, 03:25 AM
|
#8
|
Senior Member
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,638
Rep: 
|
Can you remove www from www.localhost and then try?
Code:
http://localhost/nagios
|
|
|
03-04-2009, 03:34 AM
|
#9
|
LQ Newbie
Registered: Jan 2006
Posts: 7
Original Poster
Rep:
|
I tried....
but still error!
|
|
|
03-04-2009, 03:39 AM
|
#10
|
Senior Member
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,638
Rep: 
|
can you remove all the authentication from the configuration and then look if it still gives errors?
|
|
|
03-04-2009, 03:44 AM
|
#11
|
LQ Newbie
Registered: Jan 2006
Posts: 7
Original Poster
Rep:
|
It's still error, and this is log file
[Sun Feb 15 20:25:01 2009] [notice] caught SIGTERM, shutting down
[Sun Feb 15 20:25:02 2009] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Sun Feb 15 20:25:02 2009] [notice] Digest: generating secret for digest authentication ...
[Sun Feb 15 20:25:02 2009] [notice] Digest: done
[Sun Feb 15 20:25:02 2009] [notice] Apache/2.2.6 (Unix) DAV/2 configured -- resuming normal operations
|
|
|
03-04-2009, 04:15 AM
|
#12
|
Senior Member
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,638
Rep: 
|
I do not have enough nagios experience to help you further. Whatever I thought could be helpful but nothing helped. I can not think any further.
|
|
|
03-04-2009, 04:21 AM
|
#13
|
LQ Newbie
Registered: Jan 2006
Posts: 7
Original Poster
Rep:
|
thanks for help!
I'll try... to fix it...
|
|
|
All times are GMT -5. The time now is 10:04 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|