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:
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:
Thanks in advance
cat /etc/zabbix/zabbix_agentd.d/userparameter_selinux.conf
UserParameter=selinux-enabled, [ "$(getenforce)" = "Enforcing" ] && echo 1 || echo 0
UserParameter=selinux-enabled, [ "$(getenforce)" = "Enforcing" ] && echo 1 || echo 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.".
Comment