Web Host Groups "you do not have permission"

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
mikewazowski
Posts: 6
Joined: Fri Nov 23, 2012 10:01 am

Web Host Groups "you do not have permission"

Post 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!!!
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

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

Post 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
mikewazowski
Posts: 6
Joined: Fri Nov 23, 2012 10:01 am

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

Post by mikewazowski »

I do these steps but the problem persists!

Thanks!
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

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

Post 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?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Locked