Ad Widget

Collapse

UserParameter for Memcached Not Working

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • salah@livelenz.com
    Junior Member
    • Jul 2012
    • 1

    #1

    UserParameter for Memcached Not Working

    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.
  • gigatec
    Junior Member
    • Sep 2011
    • 15

    #2
    This one is working for me on Debian:

    UserParameter=memcache[*],echo -e "stats\nquit" | nc $1 11211 | grep "STAT $2 " | awk '{print $$3}'

    Regards
    Stephan

    Comment

    Working...