View FAQ

[ Return To FAQ Index | Search The FAQs ]

FAQ Database : Nagios : Web Interface

Title:CGIs Producing "Internal Server Errors"
FAQ ID:F0406
Submitted By:Sam Darwin 
Last Updated:04/08/2007

Description:When trying to run the CGIs for the first time, and they don't run. I see the following sorts of errors in my log files.

Apr  6 21:44:32 localhost kernel: audit(1175892272.706:31): avc:  denied  { execute } for  pid=20447 comm="httpd" name="tac.cgi" dev=dm-0 ino=817757 scontext=root:system_r:httpd_t tcontext=root:object_r:usr_t tclass=file

Solution:This is related to SELinux. To solve it, run:

 'chcon -R  -t httpd_sys_content_t /usr/local/nagios'

(where /usr/local/nagios is the location of your nagios installation.) 

Keywords:selinux cgi denied rhel fedora