Hello! I have a zabbix server v3.4.15.
I have a problem with this template: https://share.zabbix.com/operating-s...sing-systemctl
Its is not showing values in our zabbix server:

Permissions for the script:
-rwxrwxr-x. 1 zabbix zabbix 275 Nov 5 12:28 /etc/zabbix/zabbix_agentd.d/service_monitoring_via_systemctl.conf
Script:
Sealert:
found 0 alerts in /var/log/audit/audit.log
Zabbix-agent config:
Iptables:
Visudo config:
Can't figure out what is the problem
I have a problem with this template: https://share.zabbix.com/operating-s...sing-systemctl
Its is not showing values in our zabbix server:
Code:
839278:20191105:162252.933 Starting Zabbix Agent [X.X.X.X]. Zabbix 3.4.15 (revision 86739). 839278:20191105:162252.934 **** Enabled features **** 839278:20191105:162252.934 IPv6 support: YES 839278:20191105:162252.934 TLS support: YES 839278:20191105:162252.934 ************************** 839278:20191105:162252.934 using configuration file: /etc/zabbix/zabbix_agentd.conf 839278:20191105:162252.934 agent #0 started [main process] 839279:20191105:162252.935 agent #1 started [collector] 839280:20191105:162252.935 agent #2 started[listener #1] 839281:20191105:162252.935 agent #3 started[listener #2] 839282:20191105:162252.936 agent #4 started[listener #3] 839283:20191105:162252.936 agent #5 started [active checks #1] 839283:20191105:162322.941 active check "systemctl.status[chronyd]" is not supported: Timeout while executing a shell script. 839283:20191105:162352.941 active check "systemctl.status[crond]" is not supported: Timeout while executing a shell script. 839283:20191105:162422.943 active check "systemctl.status[ip6tables]" is not supported: Timeout while executing a shell script. 839283:20191105:162452.944 active check "systemctl.status[iptables]" is not supported: Timeout while executing a shell script. 839283:20191105:162522.946 active check "systemctl.status[iscsid]" is not supported: Timeout while executing a shell script. 839283:20191105:162552.948 active check "systemctl.status[iscsiuio]" is not supported: Timeout while executing a shell script. 839283:20191105:162622.949 active check "systemctl.status[neutron-openvswitch-agent]" is not supported: Timeout while executing a shell script. 839283:20191105:162652.951 active check "systemctl.status[nginx]" is not supported: Timeout while executing a shell script. 839283:20191105:162722.953 active check "systemctl.status[openvswitch]" is not supported: Timeout while executing a shell script. 839283:20191105:162752.954 active check "systemctl.status[pacemaker]" is not supported: Timeout while executing a shell script. 839283:20191105:162822.956 active check "systemctl.status[qemu-guest-agent]" is not supported: Timeout while executing a shell script. 839283:20191105:162852.958 active check "systemctl.status[rsyslog]" is not supported: Timeout while executing a shell script.
Permissions for the script:
-rwxrwxr-x. 1 zabbix zabbix 275 Nov 5 12:28 /etc/zabbix/zabbix_agentd.d/service_monitoring_via_systemctl.conf
Script:
Code:
UserParameter=services.systemctl,echo "{\"data\":[$(systemctl list-unit-files --type=service|grep \.service|grep -v "@"|sed -E -e "s/\.service\s+/\",\"{#STATUS}\":\"/;s/(\s+)?$/\"},/;s/^/{\"{#NAME}\":\"/;$ s/.$//")]}"
UserParameter=systemctl.status[*],systemctl status $1
found 0 alerts in /var/log/audit/audit.log
Zabbix-agent config:
Code:
Timeout=30 EnableRemoteCommands=1 User=zabbix AllowRoot=0 UnsafeUserParameters=1
Code:
-A INPUT -s X.X.X.X -p tcp -m state --state NEW -m tcp --dport 10050 -j ACCEPT -A INPUT -s X.X.X.X -p tcp -m state --state NEW -m tcp --dport 10051 -j ACCEPT
Code:
zabbix ALL = NOPASSWD: /sbin/systemctl zabbix ALL = NOPASSWD: /usr/lib/systemd
Can't figure out what is the problem

Comment