CGI page error

EXT-Fuentes, James P James.P.Fuentes at boeing.com
Tue Oct 18 19:09:59 CEST 2005


Alex Farrer wrote {


I've setup Nagios and it is running fine, apart from I cannot access the CGI pages from the web interface, getting an Internal Server Error message. Checking my httpd error log I can see many instances of errors like this:

 

Permission denied: exec of '/usr/local/nagios/sbin/status.cgi' failed, referer: http://nagios/nagios/side.html

Premature end of script headers: status.cgi, referer: http://nagios/nagios/side.html

 

 

I compiled Nagios entirely using the default options. Here are the directives from httpd.conf:

 

 

ScriptAlias /nagios/cgi-bin/ /usr/local/nagios/sbin/

<Directory "/usr/local/nagios/sbin/">

Options ExecCGI

AllowOverride AuthConfig

Order allow,deny

Allow from all

</Directory>

 

Alias /nagios/ /usr/local/nagios/share/

<Directory "/usr/local/nagios/share">

Options None

AllowOverride AuthConfig

Order allow,deny

Allow from all

</Directory>

 

At the moment authentication is disabled in the config file.

 

It's probably a really basis error, but I can't figure it out!

 

I am running Nagios 1.2

Plugins 1.4.2

Apache 2.0.54

Fedora core 4

 

Thanks

 

Alex

}

 

chcon -R system_u:object_r:httpd_sys_script_exec_t /usr/local/nagios/sbin(or nagios CGI bin) 


fixed it for me on Fedora core 3

 

(Sorry list, Please ignore last message if it went through.. This friggin client I'm using!)

 

-Jim



-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
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