From: ankush g. <gro...@gm...> - 2009-04-24 10:41:14
|
Hi Jimmy, You need to enable authentication in cgi.cfg. use_authentication=1 authorized_for_all_host_commands=admin authorized_for_all_hosts=admin authorized_for_all_service_commands=admin authorized_for_all_services=admin authorized_for_configuration_information=admin authorized_for_system_commands=admin authorized_for_system_information=admin Something like this in nagios.conf file for apache (On my linux box that is centos 5.x it is /etc/httpd/conf.d/nagios.conf) <Directory "/usr/lib/nagios/cgi"> # 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 /etc/nagios/htpasswd.users Require valid-user </Directory> Alias /nagios "/usr/share/nagios" <Directory "/usr/share/nagios"> # 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 /etc/nagios/htpasswd.users Require valid-user </Directory> Now use htpasswd command to generate htpasswd.users file with user admin. htpasswd -c /etc/nagios/htpasswd.users admin Regards Ankush On Fri, Apr 24, 2009 at 3:34 PM, Jimmyboy <jim...@gm...> wrote: > Hi All, > > I have installed Apache2.2.9 using the source file > 'Apache2_2.2.9.orig.tar.gz'. > Nagios 3.0.6 is also installed on Ubuntu Intrepid OS using the Quickstart > Guide. I am able to open http://localhost/nagios. > > However, certain entities on the left pane, such as 'Process Info', 'Network > Outages', etc are not getting opened. They error out with 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 followed http://www.onlamp.com/pub/a/onlamp/2002/09/26/nagios.html?page=3. > Configuration of httpd.conf says ScriptAlias /nagios/cgi-bin/ > /usr/local/nagios/sbin/. But, I do not have a directory 'cgi-bin' under > nagios directory. Morever, I do not see the 'sites-available' & > other directories named similarly under my /usr/local/apache2/conf > directory. Will that be a problem? > > But, still, I am at same stage. Anyone, any idea, how to go about? > > Thanks, > Jim > ------------------------------------------------------------------------------ > Crystal Reports - New Free Runtime and 30 Day Trial > Check out the new simplified licensign option that enables unlimited > royalty-free distribution of the report engine for externally facing > server and web deployment. > http://p.sf.net/sfu/businessobjects > _______________________________________________ > Nagios-users mailing list > Nag...@li... > 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 > |