Ad Widget

Collapse

Problem monitoring SELinux status

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Fidel Valero
    Junior Member
    • Dec 2017
    • 7

    #1

    Problem monitoring SELinux status

    I have a problem with a trigger for SElinux on the clients. I follow some instructions where the user parameter is set in the client as:

    cat /etc/zabbix/zabbix_agentd.d/userparameter_selinux.conf
    UserParameter=selinux-enabled, [ "$(getenforce)" = "Enforcing" ] && echo 1 || echo 0
    Then, the trigger in the server is using the expression: {host1.example.com:selinux-enabled.last()}=0

    When I change selinux to Permissive with 'setenforce 0' I'm able to see the trigger reporting the problem with selinex estating that selinux is down. But When I change back to Enforcing, nothing happen and I see this error:

    Cannot evaluate expression: "Cannot evaluate function "zabbix1.example.com:selinux-enabled.last()": item is not supported.".
    Thanks in advance
  • DmitryL
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • May 2016
    • 278

    #2
    Check the error, why item is not supported.

    Comment

    • Fidel Valero
      Junior Member
      • Dec 2017
      • 7

      #3
      I sorted out, I fixed adding zabbix_agent_d to semanage
      semanage permissive zabbix_agent_t
      Thanks

      Comment

      Working...