Nagios 3.1.2 + RHEL 5.3 You don't have permission to access /nagios/ on this server
Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
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.
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.
You don't have permission to access /nagios/ on this server
Hi psix,
What do you mean you do not have permission to access nagios?
Is it on a web interface? Is it in the logs?
Assuming it is on the web interface, you have to allow apache to access /nagios/.
Here is the kind of definition you have to put in the Apache definition for nagios. I know that I have defined one in /etc/nagios2 then asked apache to read the file.
Code:
# Where the HTML pages live
Alias /nagios2 /usr/share/nagios2/htdocs
<DirectoryMatch (/usr/share/nagios2/htdocs|/usr/lib/cgi-bin/nagios2)>
Options FollowSymLinks
DirectoryIndex index.html
AllowOverride AuthConfig
Order Allow,Deny
Allow From All
AuthName "Nagios Access"
AuthType Basic
AuthUserFile /etc/nagios2/htpasswd.users
# nagios 1.x:
#AuthUserFile /etc/nagios/htpasswd.users
require valid-user
</DirectoryMatch>
<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>
Can you paste, using the "["CODE] "["/CODE] your apache configuration for nagios?
Are you sure you have an include from the main apache configuration file to the nagios configuration file?
<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>
In main /etc/httpd/conf/httpd.conf i have no enteris fo nagios.
I have the same permission problem with nagios 3.1.2.
Here is my output of your advise:
Code:
[root@tcentos ~]# cd /etc/httpd/
[root@tcentos httpd]# grep -rH 'Include' *
conf/httpd.conf:Include conf.d/*.conf
conf/httpd.conf:# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
conf/httpd.conf:# Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
conf/httpd.conf:# (You will also need to add "Includes" to the "Options" directive.)
conf/httpd.conf: Options IncludesNoExec
conf/httpd.conf: AddOutputFilter Includes html
Binary file modules/mod_include.so matches
grep: run/cups/cups.sock: No such device or address
grep: run/avahi-daemon/socket: No such device or address
can u give me some tipps?
here is my httpd error log:
Quote:
access to /nagios/ failed, reason: verification of user id 'nagiosadmin' not configured
^^ how to configure it ?
lol. i solved the issue:
just installed php and everythink works fine :=)
for my centos:
problem was in http.conf. DirectoryIndex was set to index.html. nagios uses an index.php file. so i have change one virtual host to be 'DirectoryIndex index.php index.html'. works perfectly fine, while the other virtual hosts gives me the 'You don't have permission to access /nagios/ on this server.'
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.