Hi
I have a problem with user parameters. In /etc/zabbix/zabbix_agentd.conf I have some UserParameter lines.
One of these don't work if I try by
zabbix_get -s 127.0.0.1 -k http.traffic
and returns empty line, and also
zabbix_agentd -t http.traffic
returns [t|]
UserParameter=http.traffic,iptables -vnl | awk '{if($$11=="dpt:80") print $$1;}'
if I execute the command in shell it works fine and I get number of packets on port 80 (using single $ symbols)
zabbix_agentd is running as root on Ubuntu Server 14.04, I have activated AllowRoot=1 .
Anyone can help me?
Excuse my English
I have a problem with user parameters. In /etc/zabbix/zabbix_agentd.conf I have some UserParameter lines.
One of these don't work if I try by
zabbix_get -s 127.0.0.1 -k http.traffic
and returns empty line, and also
zabbix_agentd -t http.traffic
returns [t|]
UserParameter=http.traffic,iptables -vnl | awk '{if($$11=="dpt:80") print $$1;}'
if I execute the command in shell it works fine and I get number of packets on port 80 (using single $ symbols)
zabbix_agentd is running as root on Ubuntu Server 14.04, I have activated AllowRoot=1 .
Anyone can help me?Excuse my English

Comment