SELinux blocking nagios' cgis on FC5

Chris Stankaitis chris.stankaitis at datawire.net
Fri Jun 23 17:18:28 CEST 2006


Miguel Fernandes wrote:
> 
> These are the results:
> 
>     [root at localhost nagios]# ls --context /var/log/nagios/
>     drwxr-xr-x  nagios nagios system_u:object_r:var_log_t      archives
>     -rw-rw-r--  nagios nagios root:object_r:var_log_t          comments.dat
>     -rw-rw-r--  nagios nagios root:object_r:var_log_t          downtime.dat
>     -rw-r--r--  nagios nagios root:object_r:var_log_t          nagios.log
>     -rw-r--r--  nagios nagios root:object_r:var_log_t          objects.cache
>     -rw-------  nagios nagios root:object_r:var_log_t         
>     retention.dat
>     -rw-rw-r--  nagios nagios root:object_r:var_log_t          status.dat
> 
> 
> MFC
> 

That seems to be it.. the webserver cannot read the objects.cache file.
try changing the context on it to httpd_sys_content_t.... if for some
reason if it or any other log needs RW access (like the comments.dat or
downtime.dat etc) it may need httpd_sys_script_rw_t context.. you'll
have to do some trial and error to get it just right but it should get
you going.

--Chris

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
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