Error: Could not open CGI config file
Andreas Ericsson
ae at op5.se
Sun Mar 6 23:17:56 CET 2005
Jared Logan wrote:
> Hi. I am new to Nagios. I read the guide before the install process.
> I have the web interface up and running and /usr/local/nagios seems
> to be just fine. I think I have done everything right but I am
> getting this error when I go to http://127.0.0.1/nagios/
>
> "Error: Could not open CGI config file
> '/usr/local/nagios/etc/cgi.cfg' for reading!" and I get this...
This is a permission error. su - to the apache user and try to cat the
cgi.cfg config file. When you can do that, you'll get past this
particular obstacle.
#
> Make sure you've installed a CGI config file in its proper location.
> See the error message about for details on where the CGI is expecting
> to find the configuration file. A sample CGI configuration file
> (named cgi.cfg) can be found in the sample-config/ subdirectory of
> the Nagios source code distribution. # Make sure the user your web
> server is running as has permission to read the CGI config file.
>
> My /usr/local/nagios/etc looks like this: bigger.cfg-sample
> htpasswd.users nagios.cfg-sample resource.cfg.in cgi.cfg
> minimal.cfg-sample nagios.cfg.in template-object
> cgi.cfg-sample misccommands.cfg-sample resource.cfg
> checkcommands.cfg-sample nagios.cfg
> resource.cfg-sample
>
> As for the user. I am using XAMPP which runs apache as "nobody". I am
> not sure what it runs as but I would assume as a regular user for the
> obvious reasons. I do not want it to run as anything esle for
> security reasons. I really have no idea what to do now. I may have
> missed something important along the way :S. I realize this is a bit
> unorganized but ANY suggestions you have are more than welcome.
> Please be detailed :)
>
--
Andreas Ericsson andreas.ericsson at op5.se
OP5 AB www.op5.se
Lead Developer
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
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