LinuxQuestions.org
Visit Jeremy's Blog.
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, 06: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, 07:02 AM   #2
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Nagpur, India
Distribution: Cent OS 5/6, Ubuntu Server 10.04
Posts: 4,629

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, 11: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, 11:51 PM   #4
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Nagpur, India
Distribution: Cent OS 5/6, Ubuntu Server 10.04
Posts: 4,629

Rep: Reputation: Disabled
Is your web directory under /usr/local/nagios? It should have been under your web root.
 
Old 03-04-2009, 02: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, 03:35 AM   #6
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Nagpur, India
Distribution: Cent OS 5/6, Ubuntu Server 10.04
Posts: 4,629

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, 04: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, 04:25 AM   #8
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Nagpur, India
Distribution: Cent OS 5/6, Ubuntu Server 10.04
Posts: 4,629

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

Code:
http://localhost/nagios
 
Old 03-04-2009, 04: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, 04:39 AM   #10
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Nagpur, India
Distribution: Cent OS 5/6, Ubuntu Server 10.04
Posts: 4,629

Rep: Reputation: Disabled
can you remove all the authentication from the configuration and then look if it still gives errors?
 
Old 03-04-2009, 04: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, 05:15 AM   #12
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Nagpur, India
Distribution: Cent OS 5/6, Ubuntu Server 10.04
Posts: 4,629

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, 05: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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 08: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 06:33 PM
Nagios Login Error sbhupati Linux - Software 8 06-01-2006 07:21 PM
Cannot access cgi-bin directory for Nagios hywaydave23 Linux - Software 1 10-12-2005 07:16 AM
nagios error messages kenji1903 Linux - Networking 9 08-21-2004 06:07 AM


All times are GMT -5. The time now is 10:10 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration