SELinux blocking nagios' cgis on FC5

Miguel Fernandes esmiguelfc at gmail.com
Fri Jun 23 17:27:51 CEST 2006


It worked!

I ran the following command:

chcon -R system_u:object_r:httpd_sys_script_rw_t /var/log/nagios/


And it's working fine now. Thank you Chris and Jim for your help!

MFC


On 6/23/06, Chris Stankaitis <chris.stankaitis at datawire.net> wrote:
>
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20060623/5825da92/attachment.html>
-------------- next part --------------
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
-------------- next part --------------
_______________________________________________
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