<div>Hi Shahid,</div>
<div> </div>
<div>I have only installed Apache & Nagios, but have not configured Nagios with the hosts & service and their respective groups, except for the <strong>contacts.cfg</strong> file.</div>
<div> </div>
<div>Just to confirm, can this pose authentication issues?</div>
<div> </div>
<div>Thanks,</div>
<div>Jim</div>
<div> </div>
<div>=-=-=-=-=<br><br></div>
<div class="gmail_quote">On Sun, Apr 26, 2009 at 8:28 PM, shadih rahman <span dir="ltr"><<a href="mailto:shadhin71@gmail.com">shadhin71@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Jimmy,<br>     Try the following and this should take care of it.  Thanks<br><br><br>ScriptAlias /nagios/cgi-bin "/usr/lib/nagios/cgi" 
<div class="im"><br><br><br>Alias /nagios "/usr/share/nagios"<br><br><Directory "/usr/share/nagios"><br>#  SSLRequireSSL<br>  Options None<br>  AllowOverride None<br>  Order allow,deny<br>  Allow from all<br>
#  Order deny,allow<br>#  Deny from all<br>#  Allow from 127.0.0.1<br>  AuthName "Nagios Access"<br>  AuthType Basic<br>  AuthUserFile /etc/nagios/htpasswd.users<br>  Require valid-user<br></Directory><br>
<br><br><br></div>
<div>
<div></div>
<div class="h5">
<div class="gmail_quote">On Sun, Apr 26, 2009 at 10:52 AM, Jimmyboy <span dir="ltr"><<a href="mailto:jimmyjose2980@gmail.com" target="_blank">jimmyjose2980@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
<div>Hi Ankush,</div>
<div> </div>
<div>This is already done, but still the issue exists.</div>
<div>The only difference is the username nagiosadmin as in my case.</div>
<div> </div>
<div>Thanks,</div>
<div>Jim<br><br></div>
<div>
<div></div>
<div>
<div class="gmail_quote">On Fri, Apr 24, 2009 at 4:11 PM, ankush grover <span dir="ltr"><<a href="mailto:grover1711@gmail.com" target="_blank">grover1711@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">Hi Jimmy,<br><br>You need to enable authentication in cgi.cfg.<br><br>use_authentication=1<br>
<br>authorized_for_all_host_commands=admin<br>authorized_for_all_hosts=admin<br>authorized_for_all_service_commands=admin<br>authorized_for_all_services=admin<br>authorized_for_configuration_information=admin<br>authorized_for_system_commands=admin<br>
authorized_for_system_information=admin<br><br><br>Something like this in nagios.conf file for apache (On my linux box<br>that is centos 5.x it is /etc/httpd/conf.d/nagios.conf)<br><br><Directory "/usr/lib/nagios/cgi"><br>
#  SSLRequireSSL<br>  Options ExecCGI<br>  AllowOverride None<br>  Order allow,deny<br>  Allow from all<br>#  Order deny,allow<br>#  Deny from all<br>#  Allow from 127.0.0.1<br>  AuthName "Nagios Access"<br>  AuthType Basic<br>
  AuthUserFile /etc/nagios/htpasswd.users<br>  Require valid-user<br></Directory><br><br>Alias /nagios "/usr/share/nagios"<br><br><Directory "/usr/share/nagios"><br>#  SSLRequireSSL<br>  Options None<br>
  AllowOverride None<br>  Order allow,deny<br>  Allow from all<br>#  Order deny,allow<br>#  Deny from all<br>#  Allow from 127.0.0.1<br>  AuthName "Nagios Access"<br>  AuthType Basic<br>  AuthUserFile /etc/nagios/htpasswd.users<br>
  Require valid-user<br></Directory><br><br><br>Now use htpasswd command to generate htpasswd.users file with user admin.<br><br>htpasswd -c /etc/nagios/htpasswd.users   admin<br><br><br>Regards<br><br>Ankush<br>
<div>
<div></div>
<div><br><br>On Fri, Apr 24, 2009 at 3:34 PM, Jimmyboy <<a href="mailto:jimmyjose2980@gmail.com" target="_blank">jimmyjose2980@gmail.com</a>> wrote:<br>> Hi All,<br>><br>> I have installed Apache2.2.9 using the source file<br>
> 'Apache2_2.2.9.orig.tar.gz'.<br>> Nagios 3.0.6 is also installed on Ubuntu Intrepid OS using the Quickstart<br>> Guide. I am able to open <a href="http://localhost/nagios" target="_blank">http://localhost/nagios</a>.<br>
><br>> However, certain entities on the left pane, such as 'Process Info', 'Network<br>> Outages', etc are not getting opened. They error out with the following<br>> message.<br>><br>> "It appears as though you do not have permission to view information for any<br>
> of the hosts you requested... If you believe this is an error, check the<br>> HTTP server authentication requirements for accessing this CGI and check the<br>> authorization options in your CGI configuration file."<br>
><br>> I followed <a href="http://www.onlamp.com/pub/a/onlamp/2002/09/26/nagios.html?page=3" target="_blank">http://www.onlamp.com/pub/a/onlamp/2002/09/26/nagios.html?page=3</a>.<br>> Configuration of httpd.conf says ScriptAlias /nagios/cgi-bin/<br>
> /usr/local/nagios/sbin/. But, I do not have a directory 'cgi-bin' under<br>> nagios directory. Morever, I do not see the 'sites-available' &<br>> other directories named similarly under my /usr/local/apache2/conf<br>
> directory. Will that be a problem?<br>><br>> But, still, I am at same stage. Anyone, any idea, how to go about?<br>><br>> Thanks,<br>> Jim<br></div></div>> ------------------------------------------------------------------------------<br>
> Crystal Reports &#45; New Free Runtime and 30 Day Trial<br>> Check out the new simplified licensign option that enables unlimited<br>> royalty&#45;free distribution of the report engine for externally facing<br>
> server and web deployment.<br>> <a href="http://p.sf.net/sfu/businessobjects" target="_blank">http://p.sf.net/sfu/businessobjects</a><br>> _______________________________________________<br>> Nagios-users mailing list<br>
> <a href="mailto:Nagios-users@lists.sourceforge.net" target="_blank">Nagios-users@lists.sourceforge.net</a><br>> <a href="https://lists.sourceforge.net/lists/listinfo/nagios-users" target="_blank">https://lists.sourceforge.net/lists/listinfo/nagios-users</a><br>
> ::: Please include Nagios version, plugin version (-v) and OS when reporting<br>> any issue.<br>> ::: Messages without supporting info will risk being sent to /dev/null<br>><br></blockquote></div><br></div></div>
<br>------------------------------------------------------------------------------<br>Crystal Reports &#45; New Free Runtime and 30 Day Trial<br>Check out the new simplified licensign option that enables unlimited<br>
royalty&#45;free distribution of the report engine for externally facing<br>server and web deployment.<br><a href="http://p.sf.net/sfu/businessobjects" target="_blank">http://p.sf.net/sfu/businessobjects</a><br>_______________________________________________<br>
Nagios-users mailing list<br><a href="mailto:Nagios-users@lists.sourceforge.net" target="_blank">Nagios-users@lists.sourceforge.net</a><br><a href="https://lists.sourceforge.net/lists/listinfo/nagios-users" target="_blank">https://lists.sourceforge.net/lists/listinfo/nagios-users</a><br>
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.<br>::: Messages without supporting info will risk being sent to /dev/null<br></blockquote></div><br><br clear="all"><br></div></div><font color="#888888">-- <br>
Cordially,<br>Shadhin Rahman<br></font></blockquote></div><br>