Skip to content

vTNT/zabbix_redis_template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

#zbx_redis_template

Zabbix template for Redis (python)

For use python version script

Install

You can monitor your redis in zabbix agent mode.

In zabbix agent mode, zabbix will periodically send request to an agent for every parameter, and agent will answer it.

In trap-message mode, script will be periodically accumulate redis's parameters and will send it to zabbix as a one message.

If you planning to capture many redis parameters and do it often. I would recomend to use trap-message mode.

Install in Zabbix Agent mode

  1. Put zbx_redis.conf into your zabbix_agentd.conf config subdirectory (like: /etc/zabbix/zabbix_agentd.d/).

  2. Change script name and redis password in zbx_redis.conf to use zbx_redis_stats.py if need it . Redis server params can be passed to the python script as arguments e.g.:

zbx_redis_stats.py -p 6379 -a password $1 $2 $3
  1. Put zbx_redis_stats.py into your zabbix_agentd.conf config subdirectory (like: /etc/zabbix/script/redis/).

  2. Change paths in zbx_redis.conf if need it.

  3. In working dir (/etc/zabbix/script/redis/) do:

For use python verson script:
pip install redis
pip install psutil 
chmod +x zbx_redis_stats.py
  1. Import zbx_export_template.xml into zabbix in Tepmplate section web gui.

Upgrade

  1. fix get dbsize bug

  2. add get redis vmsize and vmsize ratio

Releases

No releases published

Packages

No packages published

Languages