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 <
[EMAIL PROTECTED]> wrote:
Miguel Fernandes wrote:
>
> These are the results:
>
> [EMAIL PROTECTED] 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 [email protected] 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
