<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1">
  <title></title>
</head>
<body text="#000000" bgcolor="#ffffff">
<font><strong>Your httpd.conf file is not correct...you do not have
authorizations set<br>
<br>
PER THE DOCS...<br>
<br>
<Directory /usr/local/nagios/sbin><br>
 AllowOverride AuthConfig<br>
 order allow,deny<br>
 allow from all
<br>
Options ExecCGI
<br>
</Directory><br>
<br>
Yours should read...<br>
<br>
</strong></font><font size="2" face="sans-serif">        <Directory
/usr/local/nagios/lib/cgi/><br>
           <b>AllowOveride AuthConfig</b></font><br>
<font size="2" face="sans-serif">           Options ExecCGI</font>
<br>
<font size="2" face="sans-serif">           order deny,allow</font>
<br>
<font size="2" face="sans-serif">           deny from all</font>
<br>
<font size="2" face="sans-serif">           allow from all</font>
<br>
<font size="2" face="sans-serif">        </Directory><br>
<br>
also of course you need a .htaccess in the /lib/cgi directory pointing
to your htaccessuers file<br>
</font><br>
L. Bills<br>
<br>
<a class="moz-txt-link-abbreviated" href="mailto:Rick_Blair@fws.gov">Rick_Blair@fws.gov</a> wrote:<br>
<blockquote type="cite"
 cite="midOF147D03F8.FC9ECAB9-ON87256DA3.00742925-87256DA3.00745E2A@irm.r9.fws.gov"><br>
  <font size="2" face="sans-serif">I have set up a new test server and
made the permissions as wide open as possible.  I still get a cgi error:</font>
  <div align="center"><br>
  <font size="3" face="Times New Roman">"It appears as though you do
not have permission to view information for any of the hosts you
requested..."</font>
  <br>
  </div>
  <br>
  <font size="2" face="sans-serif">1. All cgi files in
/usr/local/nagios/lib/cgi are 0755 owned by nagios:apache.</font>
  <br>
  <br>
  <font size="2" face="sans-serif">2. My cgi.cfg looks like this:</font>
  <br>
  <font size="2" face="sans-serif">        </font>
  <br>
  <font size="2" face="sans-serif">       
main_config_file=/usr/local/nagios/etc/nagios.cfg</font>
  <br>
  <font size="2" face="sans-serif">       
physical_html_path=/usr/local/nagios/share</font>
  <br>
  <font size="2" face="sans-serif">        url_html_path=/nagios</font>
  <br>
  <font size="2" face="sans-serif">        show_context_help=0</font>
  <br>
  <font size="2" face="sans-serif">        use_authentication=0</font>
  <br>
  <font size="2" face="sans-serif">        default_user_name=guest</font>
  <br>
  <font size="2" face="sans-serif">       
authorized_for_system_information=*</font>
  <br>
  <font size="2" face="sans-serif">       
authorized_for_configuration_information=*</font>
  <br>
  <font size="2" face="sans-serif">       
authorized_for_system_commands=*</font>
  <br>
  <font size="2" face="sans-serif">        authorized_for_all_services=*</font>
  <br>
  <font size="2" face="sans-serif">        authorized_for_all_hosts=*</font>
  <br>
  <font size="2" face="sans-serif">       
authorized_for_all_service_commands=*</font>
  <br>
  <br>
  <font size="2" face="sans-serif">3. My httpd Include file for nagios
(/etc/httpd/conf.d/nagios.conf) looks like this:</font>
  <br>
  <font size="2" face="sans-serif">        </font>
  <br>
  <font size="2" face="sans-serif">        ScriptAlias /nagios/cgi-bin/
/usr/local/nagios/lib/cgi/</font>
  <br>
  <font size="2" face="sans-serif">        <Directory
/usr/local/nagios/lib/cgi/></font>
  <br>
  <font size="2" face="sans-serif">           Options ExecCGI</font>
  <br>
  <font size="2" face="sans-serif">           order deny,allow</font>
  <br>
  <font size="2" face="sans-serif">           deny from all</font>
  <br>
  <font size="2" face="sans-serif">           allow from all</font>
  <br>
  <font size="2" face="sans-serif">        </Directory></font>
  <br>
  <br>
  <font size="2" face="sans-serif">        Alias /nagios/
/usr/local/nagios/share/</font>
  <br>
  <font size="2" face="sans-serif">        <Directory
/usr/local/nagios/share/></font>
  <br>
  <font size="2" face="sans-serif">           Options None</font>
  <br>
  <font size="2" face="sans-serif">          order deny,allow</font>
  <br>
  <font size="2" face="sans-serif">           deny from all</font>
  <br>
  <font size="2" face="sans-serif">           allow from all</font>
  <br>
  <font size="2" face="sans-serif">        </Directory></font>
  <br>
  <br>
  <font size="2" face="sans-serif">4. The web page shows me logged in
as 'guest'.</font>
  <br>
  <br>
  <font size="2" face="sans-serif">Rick Blair<br>
Network Engineer<br>
USFW</font>
  <br>
  <br>
  <font size="2" face="sans-serif">Rick Blair<br>
Network Engineer<br>
USFW<br>
303.202.2687</font>
  <br>
  <br>
  <br>
  <br>
  <table width="100%">
    <tbody>
      <tr valign="top">
        <td>
        <br>
        </td>
        <td><font size="1" face="sans-serif"><b>Larry Bills
<a class="moz-txt-link-rfc2396E" href="mailto:larry.bills@mci.com"><larry.bills@mci.com></a></b></font>
        <br>
        <font size="1" face="sans-serif">Sent by:
<a class="moz-txt-link-abbreviated" href="mailto:nagios-users-admin@lists.sourceforge.net">nagios-users-admin@lists.sourceforge.net</a></font>
        <p><font size="1" face="sans-serif">09/16/2003 01:39 PM</font>
        <br>
        </p>
        </td>
        <td><font size="1" face="Arial">        </font>
        <br>
        <font size="1" face="sans-serif">        To:        </font>
        <br>
        <font size="1" face="sans-serif">        cc:        jeff vier
<a class="moz-txt-link-rfc2396E" href="mailto:jeff.vier@tradingtechnologies.com"><jeff.vier@tradingtechnologies.com></a>, nagios-users
<a class="moz-txt-link-rfc2396E" href="mailto:nagios-users@lists.sourceforge.net"><nagios-users@lists.sourceforge.net></a></font>
        <br>
        <font size="1" face="sans-serif">        Subject:        Re:
[Nagios-users] CGI permissions make me mad!</font></td>
      </tr>
    </tbody>
  </table>
  <br>
  <br>
  <br>
  <font size="3" face="Times New Roman">Correction...should have read
mod_auth.so<br>
  <br>
Larry<br>
  <br>
Larry Bills wrote:</font>
  <br>
  <font size="3" face="Times New Roman">Have you checked out your
webserver, since you did a resinstall of everything. If mod_auto.so is
not loaded, you will not be able to authorize, also check all other web
server switches that may affect this item. Problem might not be Nagios
at all, I have never had a problem on Red Hat or Sun Solaris 6,8 or 9
if one sets the Apache web server conf file up correctly, and the
permissions on Nagios per the docs.<br>
  <br>
Sincerely<br>
  <br>
Larry Bills<br>
  <br>
jeff vier wrote:</font>
  <br>
  <font size="3" face="Courier New">While not ideal, have you tried
opening up permissions on things?<br>
  <br>
a `chmod -R 777 /path/to/cgis /path/to/nagios` isn't something you'd<br>
want to leave live, but it'll at least "fix" the problem enough to let<br>
you know if it's a file permissions problem<br>
  </font>
  <br>
</blockquote>
</body>
</html>