Skip to main content

Zabbix v7 Redis Plugin

Central Ferry Pier, Hong Kong

Zabbix 7.4 Redis Plugin

I am using a Redis Database in a ML/AI prediction queue and want to monitor it using the official Redis Template in Zabbix v7.4. So let's first select it in the host configuration

Zabbix v7 Redis Plugin

Now add the following macros as needed:

  • {$REDIS.CONN.URI}: tcp://<ServerIP:RedisPort>
  • {$REDIS.LLD.FILTER.DB.MATCHES}: <DB you want to monitor>
  • {$REDIS.PASSWORD}: <The password you configured in your Redis config as requiredpass>
  • {$REDIS.USERNAME}: default

Zabbix v7 Redis Plugin

Zabbix v7 Redis Plugin

A Bug?

I could not get a connection - the ping timed out even though triggering it manually on the server (not through the zabbix-agent2) works just fine. Since the item configuration did not show that it was using the Redis Macros I added thoses to the Zabbix Agent configuration file on my host system:

Zabbix v7 Redis Plugin

By adding this information here on the client host the agent suddenly connected and I started seeing data come in:

nano /etc/zabbix/zabbix_agent2.d/plugins.d/redis.conf
### Option: Plugins.Redis.Default.Uri
# Uri to connect. Default value used if no other is specified.
#
# Mandatory: no
# Range:
# Must matches the URI format.
# Supported schemas: "tcp" and "unix".
# Embedded credentials will be ignored.
# Default:
Plugins.Redis.Default.Uri=<ServerIP:RedisPort>

### Option: Plugins.Redis.Default.Password
# Password to send to protected Redis server. Default value used if no other is specified.
#
# Mandatory: no
# Default:
Plugins.Redis.Default.Password=<The password you configured in your Redis config as requiredpass>

Zabbix v7 Redis Plugin