Monitoring premise: That is, the default single-machine runs only one Redis instance, and the default port to run is 6379 (or another port, you need to
Sed-i ' s/6379/you modify the port/g ' XML template file to modify the port number in the template file
Server-side configuration: Import Redis templates
Client Operation:
1 Changing the configuration file/etc/zabbix/zabbix_agentd.conf
Added at the end: Userparameter=redis_stats[*],/usr/local/redis/bin/redis-cli-h 127.0.0.1-p $ info|grep $2|cut-d:-f2
2 Restart AGENTD Service
3 server-side test for data return
Zabbix_get-s 192.168.234.133-p 10050-k redis_stats[6379,total_connections_received] # #133是客户端ip
If a number is returned and the description is normal.
4 finally confirm whether the plot
650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M02/80/F0/wKiom1dFF2_w4xjGAAAXEvmXuAA357.png "title=" Redis.png "alt=" Wkiom1dff2_w4xjgaaaxevmxuaa357.png "/>
This article is from the "Drifting Away" blog, make sure to keep this source http://825536458.blog.51cto.com/4417836/1782907
Zabbix Monitoring Redis