Bug 1319493

Summary: zabbix agent cannot test local network services
Product: Red Hat Enterprise Linux 7 Reporter: Orion Poplawski <orion>
Component: selinux-policyAssignee: Simon Sekidde <ssekidde>
Status: CLOSED ERRATA QA Contact: Milos Malik <mmalik>
Severity: high Docs Contact:
Priority: low    
Version: 7.2CC: jaster, lvrabec, mgrepl, mmalik, plautrba, pvrabec, ssekidde
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: selinux-policy-3.13.1-71.el7 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-11-04 02:45:31 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Orion Poplawski 2016-03-20 16:51:50 UTC
Description of problem:

The zabbix agent cannot test connections to local network services:

type=AVC msg=audit(1458492615.596:2749622): avc:  denied  { name_connect } for  pid=32666 comm="zabbix_agentd" dest=993 scontext=system_u:system_r:zabbix_agent_t:s0 tcontext=system_u:object_r:pop_port_t:s0 tclass=tcp_socket
type=AVC msg=audit(1458492616.722:2749629): avc:  denied  { name_connect } for  pid=32666 comm="zabbix_agentd" dest=995 scontext=system_u:system_r:zabbix_agent_t:s0 tcontext=system_u:object_r:pop_port_t:s0 tclass=tcp_socket
type=AVC msg=audit(1458492617.836:2749630): avc:  denied  { name_connect } for  pid=32666 comm="zabbix_agentd" dest=25 scontext=system_u:system_r:zabbix_agent_t:s0 tcontext=system_u:object_r:smtp_port_t:s0 tclass=tcp_socket

Version-Release number of selected component (if applicable):
selinux-policy-3.13.1-60.el7_2.3.noarch

Comment 1 Orion Poplawski 2016-03-20 16:58:28 UTC
Never mind.  These checks should be made "simple checks", not "zabbix agent" checks, and connections run from the server.

Comment 3 Orion Poplawski 2016-03-20 17:19:05 UTC
Actually, there is a good use case for running these checks from the agent - when the monitored machine is not running all the time.  That way the checks won't be run when the machine is down.

Comment 8 errata-xmlrpc 2016-11-04 02:45:31 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2016-2283.html