Need help with zbx_redis_template?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

adubkov
127 Stars 106 Forks 35 Commits 7 Opened issues

Description

Zabbix template for Redis

Services available

!
?

Need anything else?

Contributors list

# 307,313
JavaScr...
Python
16 commits
# 177,952
HTML
service...
reactjs
persist...
2 commits
# 230,715
JavaScr...
Python
prometh...
elastic...
1 commit
# 319,830
JavaScr...
Python
prometh...
webrtc
1 commit
# 11,628
Python
Go
Shell
Django
1 commit
# 560,953
JavaScr...
CSS
1 commit

zbxredistemplate

Zabbix template for Redis (node.js or python)

System requirements

For use node.js version script

For use python version script

Install

You can monitor your redis in zabbix agent mode or through trap-messages.

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.

Note: trap-message works only with python script

Install in trap-message mode

1) Put

zbx_redis_stats.py
into your monitoring scripts path (like:
/etc/zabbix/script/redis/
).

2) Change next section in zbxredisstats.py, to your configuration:

zabbix_host = '127.0.0.1'   # Zabbix Server IP
zabbix_port = 10051         # Zabbix Server Port
hostname = 'redis.srv.name' # Name of monitored server, like it shows in zabbix web ui

3) In script path (

/etc/zabbix/script/redis/
) do:
pip install redis
chmod +x zbx_redis_stats.py

4) Configure cron to run script every one minute with redis server params as arguments ``` $ sudo crontab -e

*/1 * * * * /etc/zabbix/script/redis/zbxredisstats.py localhost -p 6379 -a mypassword ```

5) Import

zbx_redis_trapper_template.xml
into zabbix in Tepmplate section web gui.

That is all :)

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 in

zbx_redis.conf
to use
zbx_redis_stats.py
if need it (by default there is a .js version script). Redis server params can be passed to the python script as arguments e.g.:
zbx_redis_stats.py localhost -p 6379 -a mypassword

3) Change your zabbixagentd.conf config so it will include this file: ``` Include=/etc/zabbix/zabbixagentd.d/ ``

4) Put
zbxredisstats.js
or
zbxredisstats.py
into your
zabbix_agentd.conf
config subdirectory (like:
/etc/zabbix/script/redis/`).

5) Change paths in

zbx_redis.conf
if need it.

6) In working dir (

/etc/zabbix/script/redis/
) do:

For use node.js verson script:

npm install redis
chmod +x zbx_redis_stats.js

For use python verson script:

pip install redis
chmod +x zbx_redis_stats.py
7) Import
zbx_redis_template.xml
into zabbix in Tepmplate section web gui.

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.