Page 1 of 1

Web Host Groups "you do not have permission"

Posted: Thu Jan 03, 2013 11:30 am
by mikewazowski
Hi, I'm having trouble accessing to Host Groups, the message is as follows:
It appears as though you do not have permission to view information for any of the hosts you requested...
If you believe this is an error, check the HTTP server authentication requirements for accessing this CGI
and check the authorization options in your CGI configuration file.

Join with the user nagiosadmin, follow the steps giving all the permisions in cgi.cfg and nagios.conf but i still getting this error.

/etc/httpd/conf.d/nagios.conf
# SAMPLE CONFIG SNIPPETS FOR APACHE WEB SERVER
# Last Modified: 11-26-2005
#
# 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

cgi.cfg:

use_authentication=1
authorized_for_system_information=nagiosadmin
authorized_for_configuration_information=nagiosadmin
authorized_for_system_commands=nagiosadmin
authorized_for_all_services=nagiosadmin,alarmas
authorized_for_all_hosts=nagiosadmin,alarmas

Any idea what can be?

Thanks!!!

Re: Web Host Groups "you do not have permission"

Posted: Thu Jan 03, 2013 12:06 pm
by slansing
Since you have made these changes it may be possible you are running multiple instances of nagios, please run the following and then let us know what you get:

Code: Select all

service nagios stop

killall -9 nagios

service httpd stop

service nagios start

service httpd start

Re: Web Host Groups "you do not have permission"

Posted: Thu Jan 03, 2013 1:48 pm
by mikewazowski
I do these steps but the problem persists!

Thanks!

Re: Web Host Groups "you do not have permission"

Posted: Thu Jan 03, 2013 5:42 pm
by abrist
Have you set a password for /usr/local/nagios/etc/htpasswd.users?
What does your file/directory permissions in /usr/local/nagios/share and /usr/local/nagios/sbin look like?