Zabbix 3.0.2 Monitoring Redis

Source: Internet
Author: User
Tags download redis redis server

Download Redis templates


Https://raw.githubusercontent.com/361way/zabbix/master/redis/redis_6379.xml

Since the port on the line is 6380

So we need to revise

Vim Redis_6379.xml

Direct one-click replacement is available

:%s/6379/6380/g


Renaming files

MV Redis_6379.xml Redis_6380.xml

Drag a file to the desktop


Go to Zabbix background page

Click Configure, templates, import

Select File, click Import

650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M02/80/5E/wKioL1c-ySuAYmiYAAA1PzTxC7g854.png "title=" 11.png "alt=" Wkiol1c-ysuaymiyaaa1pztxc7g854.png "/>


On the monitored Redis host, open the/usr/local/zabbix-agent/etc/zabbix_agentd.conf configuration file and join in the last line:


Userparameter=redis_stats[*],redis-cli-h 127.0.0.1-p $ info|grep $2|cut-d:-f2


In this document also to confirm the existence of Unsafeuserparameters=1, does not exist, plus


Restart Zabbix_agentd

Killall-9 Zabbix_agentd

/usr/local/zabbix-agent/sbin/zabbix_agentd-c/usr/local/zabbix-agent/etc/zabbix_agentd.conf


Go to Zabbix Web page backstage

Click Configure Host

Click Redis Server, add template templates redis_6380

Once added, the effect is as follows

650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M02/80/5E/wKioL1c-yjijoYkOAAAxZAum9y8283.png "title=" 22.png "alt=" Wkiol1c-yjijoykoaaaxzaum9y8283.png "/>


The Zabbix server tests if key has data returned:

[Email protected] ~]# /kuaibao/server/zabbix/bin/zabbix_get-s 192.168.1.105-p 10050-k Redis_stats[6380,total_co Nnections_received]

1573020


Wait a few minutes to view the graphics

Graphics Select Redis Port connections_6380

The effect is as follows:

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/80/5E/wKioL1c-zTXwTKG2AABj1v3KSII492.png "title=" 33.png "alt=" Wkiol1c-ztxwtkg2aabj1v3ksii492.png "/>

This article refers to:


Http://blog.hackroad.com/operations-engineer/linux_server/11019.html



This article is from the "Falling Star" blog, make sure to keep this source http://xiao987334176.blog.51cto.com/2202382/1775457

Zabbix 3.0.2 Monitoring Redis

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.