Permissions error when browsing hosts or services page

Marc Powell mpowell at ena.com
Thu Oct 30 16:59:37 CET 2003


It's not likely to be a file permissions issue, but that can't be ruled
out.  Let's start with the basics first before going overboard. Since we
don't know the specific steps you have taken to configure authorization
(and seemingly missed something), I'll paraphrase
http://nagios.sourceforge.net/docs/1_0/cgiauth.html:

1) Modify httpd.conf to add 'AllowOverride AuthConfig' for the
nagios/sbin and nagios/share directories.
2) restart httpd.
3) Create a .htpasswd file in your nagios/sbin and nagios/share
directories. They should be identical.
4) Create the htpasswd.users file for any users that you will be
allowing access for by using the htpasswd command. You'll need to use
the -c option _the first time only_ to create the file. After that, when
you use htpasswd to add users, leave off the -c option and they'll be
appended to the existing htpasswd.users file.

*Verification Point* - At this point you should be able to point your
browser to your nagios URL and be prompted for a username and password.
Once you're successfully authenticated, you'll still see the error page
below. Continue on. If not, go back and re-read the documentation again,
both for nagios and for your web server.

5) Turn on authentication for the cgi's by setting use_authentication=1
in cgi.cfg.
6) Create contact definitions in contacts.cfg for each user created in
step 4. http://nagios.sourceforge.net/docs/1_0/xodtemplate.html#contact 
7) Create contactgroups containing the pertinent contacts from 6 that
fits your requirements.
http://nagios.sourceforge.net/docs/1_0/xodtemplate.html#contactgroup 
8) Assign those contactgroups to the specific hosts and services that
those users should see when they log in.
http://nagios.sourceforge.net/docs/1_0/xodtemplate.html#hostgroup and
http://nagios.sourceforge.net/docs/1_0/xodtemplate.html#service 
9) Restart nagios just for fun.

Now, you should be able to log in and see any hosts and services for
which you are a contact for. If you continue to have problems and have
re-read the pertinent documentation, please include a sample host,
service, hostgroup, contactgroup and contact definition (preferably all
related) as well as your nagios version, httpd version, OS and version,
how nagios was installed (tar.gz, rpm, pkg, deb, etc), configure options
(if pertinent) and anything else you think might be useful information.

--
Marc
________________________________________
From: Kevin Phillips [mailto:kphillips at wwre.org] 
Sent: Thursday, October 30, 2003 7:16 AM
To: nagios-users at lists.sourceforge.net

Hello,

New to using Nagios here...

I got it installed and running pretty much but when I connect to the
server and try to browse anything having to do with hosts or services I
get the following message.

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.

I have gone over all file permissions, and file configs but nothing is
jumping out at me.

Wonder if someone could point out what I am missing.

Thanks



-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?   SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list