I'm running zabbix 7.4 in a docker swarm deployment and I'm having issues running a custom script from the host selection in both the GUI/CLI of zabbix server.

Running it from the GUI results in
Running it on CLI from the proxy results in the same error
root@zabbix_proxy_CLT:/var/lib/zabbix# zabbix_get -s <IP> -k system.run[/usr/local/bin/zabbix_iperf.sh]
ZBX_NOTSUPPORTED: Unknown metric system.run
Looks like the config that I have on the host is active
When I run the command on the linux server using the user zabbix it returns correctly
Running it from the GUI results in
Running it on CLI from the proxy results in the same error
root@zabbix_proxy_CLT:/var/lib/zabbix# zabbix_get -s <IP> -k system.run[/usr/local/bin/zabbix_iperf.sh]
ZBX_NOTSUPPORTED: Unknown metric system.run
Looks like the config that I have on the host is active
Code:
planta-dh01:~/docker/zabbix$ cat /usr/local/bin/zabbix_iperf.sh sudo ls / planta-dh01:~/docker/zabbix$ sudo cat /etc/zabbix/zabbix_agent2.conf | grep AllowKey AllowKey=system.run[/usr/local/bin/zabbix_iperf.sh,*] planta-dh01:~/docker/zabbix$ ps aux | grep zabbix_agent2 1997 2197962 0.4 0.2 1256536 26556 ? Ssl Jul15 4:42 /usr/sbin/zabbix_agent2 --foreground -c /etc/zabbix/zabbix_agent2.conf zabbix 2361067 0.2 0.2 2435704 28712 ? Ssl 09:08 0:01 /usr/sbin/zabbix_agent2 -c /etc/zabbix/zabbix_agent2.conf user1 2384640 0.0 0.0 6676 2304 pts/0 S+ 09:23 0:00 grep --color=auto zabbix_agent2
Code:
planta-dh01:~/docker/zabbix$ sudo zabbix_agent2 -t system.run[/usr/local/bin/zabbix_iperf.sh] system.run[/usr/local/bin/zabbix_iperf.sh] [s|bin bin.usr-is-merged boot cdrom dev etc home lib lib64 lib.usr-is-merged lost+found media mnt opt proc root run sbin sbin.usr-is-merged snap srv swap.img sys tmp usr var]
Comment