一个简洁的redis模板
名字暂且叫redis_template.xml(zabbix只支持json格式和xml格式两种格式)
3.0
2017-12-18T02:32:38Z
Templates
1redis_discovery_template
1redis_discovery_template
Templates
Redis Low Level Discovery
Redis Port Discovery
0
redis.discovery
60
0
0
0
0
0
0
{#REDISPORT}
8
A
30
Redis $1 Port Status
0
0
net.tcp.listen[{#REDISPORT}]
30
7
365
0
3
0
0
0
0
1
0
0
0
Redis Low Level Discovery
Redis $1 正在等待阻塞命令的客户端的数量
0
0
redis_stats[{#REDISPORT},blocked_clients]
60
7
365
0
3
0
0
0
0
1
0
0
0
Redis Low Level Discovery
Redis $1 已连接客户端的数量
0
0
redis_stats[{#REDISPORT},connected_clients]
300
7
365
0
3
0
0
0
0
1
0
0
0
Redis Low Level Discovery
Redis $1 连接的从库数量
0
0
redis_stats[{#REDISPORT},connected_slave]
600
7
365
0
3
0
0
0
0
1
0
0
0
Redis Low Level Discovery
Redis $1 Redis 可分配最大内存
0
1
redis_stats[{#REDISPORT},count_mem]
3600
7
30
0
3
B
0
0
0
0
1048576
0
0
0
Redis Low Level Discovery
Redis $1 最后一次成功保存RDB的时间
0
0
redis_stats[{#REDISPORT},last_save_time]
3600
7
365
0
3
unixtime
0
0
0
0
1
0
0
0
Redis Low Level Discovery
Redis $1 Redis 分配的内存占总量百分比
0
0
redis_stats[{#REDISPORT},proportion]
60
7
30
0
0
%
0
0
0
0
1
0
0
0
Redis Low Level Discovery
Redis $1 当前实例的角色
0
0
redis_stats[{#REDISPORT},role]
60
7
0
0
1
0
0
0
0
1
0
0
0
Redis Low Level Discovery
Redis $1 运行时间(秒)
0
0
redis_stats[{#REDISPORT},uptime_in_seconds]
300
7
365
0
3
uptime
0
0
0
0
1
0
0
0
Redis Low Level Discovery
Redis $1 Redis 分配的内存总量
0
0
redis_stats[{#REDISPORT},used_memory:]
120
7
365
0
3
0
0
0
0
1
0
0
0
Redis Low Level Discovery
Redis $1 redis占用系统内存总量
0
0
redis_stats[{#REDISPORT},used_memory_rss]
300
7
365
0
3
0
0
0
0
1
0
0
0
Redis Low Level Discovery
{1redis_discovery_template:net.tcp.listen[{#REDISPORT}].last()}<>1
{HOST.NAME} Redis {#REDISPORT} port is NOT Listening
1
4
0
{1redis_discovery_template:net.tcp.listen[{#REDISPORT}].count(#3,0,"eq")}=3
{HOST.NAME} Redis {#REDISPORT} port is not running
1
4
0
{1redis_discovery_template:redis_stats[{#REDISPORT},proportion].last()}>80
{HOST.NAME} Redis {#REDISPORT} port 内存使用超80%
1
4
0
{1redis_discovery_template:redis_stats[{#REDISPORT},role].diff()}<>0
{HOST.NAME} Redis {#REDISPORT} port发生主备切换
1
3
0
Redis {#REDISPORT} Port Last_save_time
900
200
0.0000
100.0000
1
1
0
1
0
0.0000
0.0000
0
0
0
0
0
0
C80000
0
2
0
-
1redis_discovery_template
redis_stats[{#REDISPORT},last_save_time]
Redis {#REDISPORT} Port status
900
200
0.0000
100.0000
1
1
0
1
0
0.0000
0.0000
0
0
0
0
0
0
009900
0
2
0
-
1redis_discovery_template
net.tcp.listen[{#REDISPORT}]
Redis {#REDISPORT} Port Uptime_in_seconds
900
200
0.0000
100.0000
1
1
0
1
0
0.0000
0.0000
0
0
0
0
0
0
00BB00
0
2
0
-
1redis_discovery_template
redis_stats[{#REDISPORT},uptime_in_seconds]
Redis {#REDISPORT} Port Used memory
900
200
0.0000
100.0000
1
1
0
1
0
0.0000
0.0000
0
0
0
0
0
0
C80000
0
2
0
-
1redis_discovery_template
redis_stats[{#REDISPORT},used_memory:]
1
0
00C800
0
2
0
-
1redis_discovery_template
redis_stats[{#REDISPORT},used_memory_rss]