weird cgi problem

Andreas Ericsson ae at op5.se
Tue Aug 9 21:17:17 CEST 2005


Guillermo Padilla wrote:
> Yep.. and the logs show everything as being normal, below is part of my
> access log
> 

su -
to the apache user and fix permissions until you can successfully cat 
your cgi.cfg. If you installed it in the default directory (or the 
directory where you told it to be during compilation), it will work when 
you manage to do that.

>  
> 
>  - - [09/Aug/2005:15:04:12 -0400] "GET
> /nagios/cgi-bin/status.cgi?hostgroup=all&style=hostdetail HTTP/1.1" 200
> 1237
> 
>  - - [09/Aug/2005:15:04:24 -0400] "GET
> /nagios/cgi-bin/status.cgi?host=all HTTP/1.1" 200 1237
> 
>  - - [09/Aug/2005:15:04:54 -0400] "GET
> /nagios/cgi-bin/status.cgi?hostgroup=all HTTP/1.1" 200 1237
> 
>  - - [09/Aug/2005:15:04:55 -0400] "GET
> /nagios/cgi-bin/status.cgi?host=all HTTP/1.1" 200 1237
> 
>  - - [09/Aug/2005:15:04:55 -0400] "GET
> /nagios/cgi-bin/status.cgi?host=all HTTP/1.1" 200 1237
> 
>  - - [09/Aug/2005:15:04:56 -0400] "GET /nagios/cgi-bin/tac.cgi HTTP/1.1"
> 200 1315
> 
>  
> 
> And this is part of my error log when i tried going via authentication
> which I disabled
> 
>  
> 
> Permission denied: Could not open password file:
> /usr/local/nagios/etc/htpasswd.users, referer:
> 
>  
> 
> Htpasswd.users exists in that dir with chmod 777 on the file itself.
> 
>  
> 
>  
> 
>  
> 
>  
> 
> ________________________________
> 
> From: Hosey, Chester [mailto:Chester.Hosey at gianteagle.com] 
> Sent: Tuesday, August 09, 2005 2:58 PM
> To: Guillermo Padilla; nagios-users at lists.sourceforge.net
> Subject: RE: [Nagios-users] weird cgi problem
> 
>  
> 
> Have you checked your Apache logs?
> 
> 	-----Original Message-----
> 	From: nagios-users-admin at lists.sourceforge.net
> [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Guillermo
> Padilla
> 	Sent: Tuesday, August 09, 2005 2:57 PM
> 	To: nagios-users at lists.sourceforge.net
> 	Subject: [Nagios-users] weird cgi problem
> 
> 	Nagios has been working great for the last past months (v 1.2)
> 
> 	 
> 
> 	Now when I try to access the site I get the the user/pass window
> over and over again.  I disabled authentication to see if I could access
> without uid/pass and I get the following error:
> 
> 	 
> 
> 	Error: Could not open CGI config file
> '/usr/local/nagios/etc/cgi.cfg' for reading!
> 
> 	Nagios is running fine and doing its checks but I just cant
> access the webpage, I'm sure its something to do with apache, I'm able
> restart nagios without a problem and in /var/rw the nagios.cmd file has
> the correct ownership uid nagios gid nagiocmd.
> 
> 	 
> 
> 	Any ideas on what this could be?
> 
> 	 
> 
> 	Thx
> 
> 	 
> 
> 

-- 
Andreas Ericsson                   andreas.ericsson at op5.se
OP5 AB                             www.op5.se
Lead Developer


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
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