Hi,
I am trying to get UserParameter work, I have a host with zabbix agent2 installed, and few UserParameter set up working, but I can not get this one return any value, here is:
UserParameter=disk1,smartctl -a /dev/sda | awk '/^(Elements).*:/ { print $3 }'
if I run smartctl -a /dev/sda | awk '/^(Elements).*:/ { print $3 }', it will return a value I want, but somehow UserParameter does not return thsi value to zabbix, it show blank.
anybody can help?
I am trying to get UserParameter work, I have a host with zabbix agent2 installed, and few UserParameter set up working, but I can not get this one return any value, here is:
UserParameter=disk1,smartctl -a /dev/sda | awk '/^(Elements).*:/ { print $3 }'
if I run smartctl -a /dev/sda | awk '/^(Elements).*:/ { print $3 }', it will return a value I want, but somehow UserParameter does not return thsi value to zabbix, it show blank.
anybody can help?
Comment