How to monitor Memcached's instance by using Zabbix
- Import Memcached's template from this link to your Zabbix server
- Modify /etc/zabbix/zabbix_agentd.conf and add the following UserParameter (on the Memcached server)
UserParameter=memcached_stats[*],echo -e "stats\nquit" | nc 127.0.0.1 $1 | grep "STAT $2 " | awk '{print $$3}' - Restart Zabbix agentd service
- Link Mecached template to Memcached server
- Check the latest data (Application: memcached)
- 38 Items (default type is Zabbix Agent Active)
- 1 trigger
- 4 graphs
Note
- This template tries to monitor Memcached instance that running on port 11211
- If your Memcached instance is running in different port, you could simply replace 11211 with your port number before importing this template
- If you run more than one Memcached instances, you could simply copy this and modify port number.