Skip to content

tetsuwo/zabbix-memcached-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Memcached Stats Templates for Zabbix

Build Status

This Zabbix template is template for resource monitoring of Memcached.
In this example the settings path of zabbix is /etc/zabbix/.

Setting zabbix agent side

Setting config file.

$ curl https://raw.githubusercontent.com/tetsuwo/zabbix-memcached-template/master/src/zabbix_agentd.d/userparameter_memcached.conf > /etc/zabbix/zabbix_agentd.d/userparameter_memcached.conf

Setting script file.

$ curl https://raw.githubusercontent.com/tetsuwo/zabbix-memcached-template/master/src/bin/memcached-stat.py > /etc/zabbix/bin/memcached-stat.py
$ sudo chown zabbix:zabbix /etc/zabbix/bin/memcached-stat.py
$ sudo chmod +x /etc/zabbix/bin/memcached-stat.py

Restart zabbix-agent.

$ sudo service zabbix-agent restart

Test with zabbix_agentd.

$ zabbix_agentd -t memcached.stat[--host,localhost,--port,11211,--item,version]
memcached.stat[--host,localhost,--port,11211,--item,version] [t|1.4.13]

Setting zabbix server side

Macro

  • {$MEMCACHED_HOST} ... host for memcached reference from agent
  • {$MEMCACHED_PORT} ... port for memcached reference from agent