Nagios 4 + Nagvis SELinux issue
Posted: Fri Mar 21, 2014 7:07 am
Hi,
I am running Nagios 4.0.2 and using http://support.nagios.com/forum/viewtop ... 44&p=86780 I have got the fork of livestatus up and running and Nagvis
My problem is with selinux. With it disabled with setenforce 0 it all works ok, automap etc, if I have it enabled then I get permission denied in the nagvis interface
Unable to connect to the /usr/local/nagios/var/rw/live in backend live_1: Permission denied
I have tried all I can find in Google such as,
chcon -R -t httpd_sys_script_rw_t /usr/local/nagios/var/rw
but it still fails with the following in my audit log
type=AVC msg=audit(1395403198.613:226546): avc: denied { connectto } for pid=15504 comm="httpd" path="/usr/local/nagios/var/rw/live" scontext=unconfined_u:system_r:httpd_t:s0 tcontext=unconfined_u:system_r:initrc_t:s0 tclass=unix_stream_socket
Any suggestions? I would like to keep selinux enabled if possible. Thought I would try here first before posting to the nagvis people
thanks
Darren
I am running Nagios 4.0.2 and using http://support.nagios.com/forum/viewtop ... 44&p=86780 I have got the fork of livestatus up and running and Nagvis
My problem is with selinux. With it disabled with setenforce 0 it all works ok, automap etc, if I have it enabled then I get permission denied in the nagvis interface
Unable to connect to the /usr/local/nagios/var/rw/live in backend live_1: Permission denied
I have tried all I can find in Google such as,
chcon -R -t httpd_sys_script_rw_t /usr/local/nagios/var/rw
but it still fails with the following in my audit log
type=AVC msg=audit(1395403198.613:226546): avc: denied { connectto } for pid=15504 comm="httpd" path="/usr/local/nagios/var/rw/live" scontext=unconfined_u:system_r:httpd_t:s0 tcontext=unconfined_u:system_r:initrc_t:s0 tclass=unix_stream_socket
Any suggestions? I would like to keep selinux enabled if possible. Thought I would try here first before posting to the nagvis people
thanks
Darren