Ad Widget

Collapse

SELinux blocking Zabbix Agent - CentOS 7

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mateusscheper
    Junior Member
    • Dec 2018
    • 3

    #1

    SELinux blocking Zabbix Agent - CentOS 7

    I'm getting permission denied in /var/log/zabbix/zabbix_agentd.log:
    Code:
    active check configuration update from [DOMAIN:PORT] started to fail (cannot connect to [[DOMAIN]:PORT]: [13] Permission denied)
    And in /var/log/audit/audit.log, I have this:
    Code:
    avc: denied { name_connect } for pid=46635 comm="zabbix_agentd" dest=PORT scontext=system_u:system_r:zabbix_agent_t:s0 tcontext=system_u:object_r:ephemeral_port_t:s0 tclass=tcp_socket
    I can see that my server port is open by using nmap -v DOMAIN -pPORT and I can see that my Zabbix Agent port is open but using nmap -v DOMAIN -pPORT.

    How can I fix this?

    EDIT: I managed to get rid of the SELinux issue, but I still can't connect. I see both server and agent ports open but I can't get data in my server. I keep getting this in my server:
    Code:
    Get value from agent failed: ZBX_TCP_READ() timed out

    EDIT2: I raised timeout from 4 to 8 seconds and now it's working.
    Last edited by mateusscheper; 14-12-2018, 20:40.
Working...