diff --git a/templates/Template_App_Redis.xml b/templates/Template_App_Redis.xml new file mode 100644 index 0000000..3b7fc78 --- /dev/null +++ b/templates/Template_App_Redis.xml @@ -0,0 +1,3374 @@ + + + 2.0 + 2016-01-28T14:13:31Z + + + Zabbix Templates + + + + + + + + {Template App Redis:redis[aof_last_write_status].str("ok")}<>1 + Redis AOF last write status is not ok + + 0 + 2 + + 0 + + + + {Template App Redis:redis[aof_last_bgrewrite_status].str("ok")}<>1 + Redis background AOF rewrite status is not ok + + 0 + 2 + + 0 + + + + {Template App Redis:redis[rdb_last_bgsave_status].str("ok")}<>1 + Redis Database background status is not ok + + 0 + 2 + + 0 + + + + {Template App Redis:redis[gcc_version].diff(0)}>0 + Redis GCC version has changed + + 0 + 1 + + 0 + + + + {Template App Redis:net.tcp.port[127.0.0.1,6379].last(0)}=0 + Redis is down + + 0 + 5 + + 0 + + + + {Template App Redis:chkconfig[redis].last(0)}=0 + Redis is not enabled in autostart + + 0 + 2 + + 0 + + + + {Template App Redis:redis[total_commands_processed].nodata(2m)}=1 + Redis is not responding + + 0 + 4 + + 0 + + + + {Template App Redis:redis-ping.last()}=0 + Redis ping test returned an error + + 0 + 4 + + 0 + + + + {Template App Redis:redis[redis_version].diff(0)}>0 + Redis version has changed + + 0 + 1 + + 0 + + + + {Template App Redis:redis[cluster_enabled].diff(0)}>0 + [Redis] Cluster status has changed + + 0 + 1 + + 0 + + + + {Template App Redis:redis[role].diff(0)}>0 + [Redis] Replication role has changed + + 0 + 1 + + 0 + + + + + + [Redis] AOF + 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 + + Template App Redis + redis[aof_rewrite_scheduled] + + + + 1 + 0 + 00C800 + 0 + 2 + 0 + + Template App Redis + redis[aof_enabled] + + + + 2 + 0 + 0000C8 + 0 + 2 + 0 + + Template App Redis + redis[aof_rewrite_in_progress] + + + + 3 + 0 + C800C8 + 0 + 2 + 0 + + Template App Redis + redis[aof_current_rewrite_time_sec] + + + + + + [Redis] Connections + 900 + 200 + 0.0000 + 100.0000 + 1 + 1 + 0 + 1 + 0 + 0.0000 + 0.0000 + 0 + 0 + 0 + 0 + + + 1 + 0 + C80000 + 0 + 2 + 0 + + Template App Redis + redis[rejected_connections] + + + + 0 + 0 + 00C800 + 0 + 2 + 0 + + Template App Redis + redis[connected_clients] + + + + 2 + 0 + C800C8 + 0 + 2 + 0 + + Template App Redis + redis[connected_slaves] + + + + + + [Redis] Keyspaces + 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 + + Template App Redis + redis[keyspace_misses] + + + + 1 + 0 + 00C800 + 0 + 2 + 0 + + Template App Redis + redis[keyspace_hits] + + + + + + [Redis] Memory + 900 + 200 + 0.0000 + 100.0000 + 1 + 1 + 0 + 1 + 0 + 0.0000 + 0.0000 + 0 + 0 + 0 + 0 + + + 0 + 0 + C800C8 + 0 + 2 + 0 + + Template App Redis + redis[used_memory] + + + + 1 + 0 + 00C8C8 + 0 + 2 + 0 + + Template App Redis + redis[used_memory_lua] + + + + 2 + 0 + C8C800 + 0 + 2 + 0 + + Template App Redis + redis[used_memory_peak] + + + + 3 + 0 + 660000 + 0 + 2 + 0 + + Template App Redis + redis[used_memory_rss] + + + + + + [Redis] Memory fragmentation ratio + 900 + 200 + 0.0000 + 100.0000 + 1 + 1 + 0 + 1 + 0 + 0.0000 + 0.0000 + 0 + 0 + 0 + 0 + + + 0 + 0 + 00C800 + 0 + 7 + 0 + + Template App Redis + redis[mem_fragmentation_ratio] + + + + + + [Redis] server is running + 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 + + Template App Redis + net.tcp.port[127.0.0.1,6379] + + + + + + [Redis] Total + 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 + + Template App Redis + redis[total_commands_processed] + + + + 1 + 0 + 00C800 + 0 + 2 + 0 + + Template App Redis + redis[total_connections_received] + + + + + + diff --git a/zabbix_agentd.conf.d/redis.conf b/zabbix_agentd.conf.d/redis.conf new file mode 100644 index 0000000..7aaa96d --- /dev/null +++ b/zabbix_agentd.conf.d/redis.conf @@ -0,0 +1,2 @@ +UserParameter=redis[*],echo -e "info\nquit" | redis-cli | grep $1":" | cut -d ':' -f 2 +UserParameter=redis-ping,echo -e "ping\nquit" | redis-cli | grep -c PONG