Nagios on FreeBSD

Crow Lee Contr 379 ECS Lee.Crow at auab.aorcentaf.af.mil
Sun Apr 20 16:49:51 CEST 2003


Ok... I looked in the httpd-error.log file and it doesn't look right.  Here
is one of the entries:

script not found or unable to stat: /usr/local/share/nagios/cgi-bintac.cgi

This isn't a typo... there is no "/" between cgi-bin and the script to
indicate that the script is in the cgi-bin directory.  However, the URL on
the website looks correct:

http://xxx.xx.xxx.141/nagios/cgi-bin/tac.cgi

And here is how my httpd.conf file looks from a nagios standpoint.

ScriptAlias /nagios/cgi-bin/ /usr/local/share/nagios/cgi-bin/
<Directory "/usr/local/share/nagios/cgi-bin/">
    AllowOverride AuthConfig
    Options ExecCGI
    Order allow,deny
    Allow from all
</Directory>

Alias /nagios /usr/local/share/nagios/
<Directory "/usr/local/share/nagios">
    Options None
    AllowOverride AuthConfig
    Order allow,deny
    Allow from all
</Directory>

Thanks!


Lee Crow
Sr. LAN/WAN Administrator
ITT Systems Division
---------------------------
Cell: +974-556-3127
DSN: 318-471-2074
Lee.Crow at auab.aorcentaf.af.mil
 

-----Original Message-----
From: Subhendu Ghosh [mailto:sghosh at sghosh.org] 
Sent: Sunday, April 20, 2003 3:51 AM
To: nagios-users at lists.sourceforge.net
Subject: Re: [Nagios-users] Nagios on FreeBSD

On Sat, 19 Apr 2003, Crow Lee Contr 379 ECS wrote:

> Hi all,
>  
> I installed nagios about a week ago.  I just got the config files right to
> where when I run the check on them I get zero errors.  Whoopie!
>  
> Anyway, I can get to my nagios web site and view all of the documentation.
> However, when I try to click on any of the cgi links I get a 404 error.  I
> set up the authentication for the cgi scripts and I am logged in as
> nagiosadmin.  Here is my setup.
>  
> OS: FreeBSD
> Nagios installed from port with all required software
> 2 drwxrwxr-x   2 nagios  nagios    512 Apr 15 10:59 cgi-bin
> In my httpd.conf file I have:
>  
> ScriptAlias /nagios/cgi-bin /usr/local/share/nagios/cgi-bin
> <Directory "/usr/local/share/nagios/cgi-bin">
>     AllowOverride AuthConfig
>     Options ExecCGI
>     Order allow,deny
>     Allow from all
> </Directory>
>  
> Alias /nagios /usr/local/share/nagios/
> <Directory "/usr/local/share/nagios">
>     Options None
>     AllowOverride AuthConfig
>     Order allow,deny
>     Allow from all
> </Directory>
>  
> Does anyone know what I am doing wrong?  Any help would be greatly
> appreciated!
>  
> Thanks,
>  
> Lee Crow
> Sr. LAN/WAN Administrator
> ITT Systems Division


Do the apache logs provide any hints?

-sg


-- 




-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
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


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
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