LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 03-02-2009, 05:41 AM   #1
son_th02
LQ Newbie
 
Registered: Jan 2006
Posts: 7

Rep: Reputation: 0
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
 
Old 03-02-2009, 06:02 AM   #2
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,631

Rep: Reputation: Disabled
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.
 
Old 03-03-2009, 10:37 PM   #3
son_th02
LQ Newbie
 
Registered: Jan 2006
Posts: 7

Original Poster
Rep: Reputation: 0
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...
 
Old 03-03-2009, 10:51 PM   #4
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,631

Rep: Reputation: Disabled
Is your web directory under /usr/local/nagios? It should have been under your web root.
 
Old 03-04-2009, 01:48 AM   #5
son_th02
LQ Newbie
 
Registered: Jan 2006
Posts: 7

Original Poster
Rep: Reputation: 0
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!?
 
Old 03-04-2009, 02:35 AM   #6
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,631

Rep: Reputation: Disabled
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.
 
Old 03-04-2009, 03:20 AM   #7
son_th02
LQ Newbie
 
Registered: Jan 2006
Posts: 7

Original Poster
Rep: Reputation: 0
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>
 
Old 03-04-2009, 03:25 AM   #8
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,631

Rep: Reputation: Disabled
Can you remove www from www.localhost and then try?

Code:
http://localhost/nagios
 
Old 03-04-2009, 03:34 AM   #9
son_th02
LQ Newbie
 
Registered: Jan 2006
Posts: 7

Original Poster
Rep: Reputation: 0
I tried....
but still error!
 
Old 03-04-2009, 03:39 AM   #10
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,631

Rep: Reputation: Disabled
can you remove all the authentication from the configuration and then look if it still gives errors?
 
Old 03-04-2009, 03:44 AM   #11
son_th02
LQ Newbie
 
Registered: Jan 2006
Posts: 7

Original Poster
Rep: Reputation: 0
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
 
Old 03-04-2009, 04:15 AM   #12
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,631

Rep: Reputation: Disabled
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.
 
Old 03-04-2009, 04:21 AM   #13
son_th02
LQ Newbie
 
Registered: Jan 2006
Posts: 7

Original Poster
Rep: Reputation: 0
thanks for help!
I'll try... to fix it...
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Nagios and Oreon (Nagios web front end) installation and Configuration LXer Syndicated Linux News 1 05-31-2016 07:26 AM
LXer: Nagios 2.5 and Oreon 1.3 (Nagios web front end) installation with screenshots LXer Syndicated Linux News 0 08-11-2006 05:33 PM
Nagios Login Error sbhupati Linux - Software 8 06-01-2006 06:21 PM
Cannot access cgi-bin directory for Nagios hywaydave23 Linux - Software 1 10-12-2005 06:16 AM
nagios error messages kenji1903 Linux - Networking 9 08-21-2004 05:07 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:54 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration