CGI user auth on Ubuntu 7.04

Morris, Patrick patrick.morris at hp.com
Sat May 19 22:54:14 CEST 2007


> I recently installed nagios on my laptop running Ubuntu Feisty Fawn.
> 
> Now, everying works except that now I get the following error 
> every I click on "host detail" through the web GUI.
> 
> "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."
> 
> In this O'Reilly article ( http://tinyurl.com/2p83ac), it 
> says to modify the .htaccess file in this directory.
> 
> /usr/local/nagios/sbin/
> 
> Ubuntu doesn't have that directory, and so I started looking 
> for it and can't find where the .htaccess file would be located. 
> 
> I ran "slocate -u" and then "locate .htaccess", but couldn't 
> find anything.
> 
> Any suggestions on where I should look?

The easiest way to do this (and the recommended way in most of the
Nagios docs I've seen) is to set up authentication in Apache's config
files, rather than with a .htaccess file.  You might look there.

You have a couple options here. One would be to configure
authentication, then make sure the user you're logging in as is a
contact on the hosts and services you want to see. The other would be to
allow any user to see everything, and instructions for that are
contained in the example cgi config file.

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
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