I copied the perl script from Munin's plugin and modify some parts to make it match with Zabbix. Thank you Munin's plugin developers.
Here are the files
- Zabbix's template (16 items, 1 trigger, 2 graphs)
- Perl script
Howto install?
- If you running your own Redis on port 6379, you don't need to change anything. If you run Redis in another port, just simply use text editor to replace 6379 to your port number.
- If you running multiple instances of Redis, your could just simply copy the template to your own ports. No need to modify perl script
- Import template
- Upload redis.pl to your Redis server at /etc/zabbix/scripts, chmod to 755
- Make sure that you could run below command and don't get any error.
sudo su - zabbix --shell=/bin/bash && /etc/zabbib/scripts/redis.pl 127.0.0.1 6379 role
- Append below line to /etc/zabbix/zabbix_agentd.conf
UserParameter=redis_stats[*],/etc/zabbix/scripts/redis.pl $1 $2 $3
- Restart zabbix-agentd service
- Check your latest data at Zabbix server via web interface
Good luck.