We have configured a UserParameter to collect data form Memcached, but the Zabbix Agent continues to respond with "Not Supported".
The line added in zabbix_agentd.conf is:
UserParameter=memcached_stats[*],echo -e "stats\nquit" | nc.traditional localhost $1 | grep "STAT $2" | awk '{print $$3;}'
The problem seems to be in the portion:
grep "STAT $2"
The issue has to do with properly interpreting $2 as a Zabbix parameter, and then executing the command within Ubuntu.
Any help would be appreciated.
The line added in zabbix_agentd.conf is:
UserParameter=memcached_stats[*],echo -e "stats\nquit" | nc.traditional localhost $1 | grep "STAT $2" | awk '{print $$3;}'
The problem seems to be in the portion:
grep "STAT $2"
The issue has to do with properly interpreting $2 as a Zabbix parameter, and then executing the command within Ubuntu.
Any help would be appreciated.
Comment