RE: [Nagios-users] a config problem using centos 4, apache 2.0.52 and nagios 2.0b4 rpm
-Original Message- From: [EMAIL PROTECTED] [mailto:nagios-users- [EMAIL PROTECTED] On Behalf Of gillianb Sent: Thursday, January 12, 2006 9:04 PM To: Nagios-users@lists.sourceforge.net Subject: [Nagios-users] a config problem using centos 4, apache 2.0.52 and nagios 2.0b4 rpm No errors in the nagios.log file, but in /var/log/httpd/error_log I find errors: Permission Denied: exec of /usr/lib/nagios/cgi/status.cgi failed. Premature end of script headers status.cgi All files under /usr/lib/nagios/cgi have perms _rwxrwx___ and ownership nagios:nagios httpd runs as apache, and apache is in the nagios group. This has always worked for me in the past. I am guessing there is a problem with my httpd setup, but to be honest, I haven't done anything to it other than add the stanzas for nagios. I have also deleted them and re-added them just to make sure. As Christian bring up, this could well be SELinux under Centos 4. Run '/usr/sbin/sestatus -v' to see if SELinux is enabled. If so, run 'audit2allow -l -i /var/log/messages -v' and look for references to nagios. If you see any this post -- http://article.gmane.org/gmane.network.nagios.user/33586/match=selinux might be useful. -- Marc --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_idv37alloc_id865op=click ___ Nagios-users mailing list Nagios-users@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
Re: [Nagios-users] a config problem using centos 4, apache 2.0.52 and nagios 2.0b4 rpm
Internal Server Error Helpful isn't it! No errors in the nagios.log file, but in /var/log/httpd/error_log I find errors: Permission Denied: exec of /usr/lib/nagios/cgi/status.cgi failed. Premature end of script headers status.cgi Even more helpful. Isn't troubleshooting FUN! All files under /usr/lib/nagios/cgi have perms _rwxrwx___ and ownership nagios:nagios httpd runs as apache, and apache is in the nagios group. This has always worked for me in the past. I am guessing there is a problem with my httpd setup, but to be honest, I haven't done anything to it other than add the stanzas for nagios. I have also deleted them and re-added them just to make sure. I had this problem once before, and it was because REMOTE_USER wasn't being set during authentication. you can try opening up the cgi.cfg and making one of your users the default, so that REMOTE_USER is ignored, and see if you have access that way. If that stil fails then you're likely to be missing a scriptalias in your apache config somewhere. -- Jim Perrin System Architect - UIT Ft Gordon US Army Signal Center --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_idv37alloc_id865op=click ___ Nagios-users mailing list Nagios-users@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
Re: [Nagios-users] a config problem using centos 4, apache 2.0.52 and nagios 2.0b4 rpm
On Fri, Jan 13, 2006 at 01:04:19PM +1000, gillianb wrote: On this new server, [...] No errors in the nagios.log file, but in /var/log/httpd/error_log I find errors: Permission Denied: exec of /usr/lib/nagios/cgi/status.cgi failed. Premature end of script headers status.cgi All files under /usr/lib/nagios/cgi have perms _rwxrwx___ and ownership nagios:nagios maybe selinux? booleans: httpd_enable_cgi=1 httpd_ssi_exec=1 -- --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click ___ Nagios-users mailing list Nagios-users@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