monitoring plugins check_redis

monitoring check for redis


./ --help
usage: [-h] [-H HOST] [-p PORT] [-P PASSWORD] [-d DBNAME] [-t TIMEOUT] [-w WARNING] [-c CRITICAL] [-k KEY_VALUE]

monitoring plugin for redis-server

  -h, --help            show this help message and exit
  -H HOST, --host HOST  Redis server to connect to. (default is
  -p PORT, --port PORT  Redis port to connect to. (default is 6379)
  -P PASSWORD, --password PASSWORD
                        Redis password to connect to.
  -d DBNAME, --dbname DBNAME
                        Redis database name (default is db0)
  -t TIMEOUT, --timeout TIMEOUT
                        Number of seconds to wait before timing out and considering redis down
  -w WARNING, --warning WARNING
                        Warning threshold.
  -c CRITICAL, --critical CRITICAL
                        Critical threshold.
                        Stat to monitor (memory_mb, hit_ratio, or custom)


OK REDIS version: 7.0.5, connected_clients: 1, db0: 1, used_memory_human: 672.77K, uptime_in_days: 2
./ --key hit_ratio --critical 0 --warning 1
OK: Redis hit_ratio is 0 || hit_ratio=0;1;0;0;0
./ --key memory_mb --critical 1 --warning 3
OK: Redis memory_mb is 8.98046875 || memory_mb=8.98046875;3;1;0;8.98046875