# zabbix **Repository Path**: beentan/zabbix ## Basic Information - **Project Name**: zabbix - **Description**: zabbix监控相关 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 2 - **Created**: 2016-10-24 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README #zabbix ##一、zabbix监控redis,以及不同端口的redis实例 ### 1、#shell> vim /etc/zabbix/zabbix-agentd.conf 在末尾添加如下: UserParameter=Redis.Status.status,`/usr/local/redis/src/redis-cli -h -p 6379 ping |grep -c PONG` && echo $status UserParameter=Redis.Info[*],/etc/zabbix/scripts/redismonitor.sh $1 $2 ### 2、将redismonitor.sh上传到/etc/zabbix/scripts/下,记得chmod +x,确定redismonitor脚本中的变量路径是不是正确; ### 3、重启zabbix-agent服务, ### 4、在zabbix 服务端导入zabbix_redis_templates.xml,将监控模板导入,并添加到响应的主机中监控中。