Hi..
I'm using Zabbix server 5.x and agent v2 (5.2.0) for my host. I am also using official 'redis' tempalte from Zabbix. It hosts 2 redis instance, one at port 7000, other at 8000. I'm using session name to collect data from my password protected redis instances. So far this works fine with single instance and/or pointing to either of the sessions. My zabbix agent v2 config has these:
# redis montoring with zabbix
Plugins.Redis.Sessions.Redis1.Uri=tcp://localhost:7000
Plugins.Redis.Sessions.Redis1.Password=1234
Plugins.Redis.Sessions.Redis2.Uri=tcp://localhost:8000
Plugins.Redis.Sessions.Redis2.Password=1234
My question is how can I indicate both redis instance's session names (i.e. Redis1 and Redis2) in my host's macro at Zabbix frontend? If I give either '{$REDIS.CONN.URI}=Redis1' or '{$REDIS.CONN.URI}=Redis2' it works. but collects only the one instance's data. But i want to collect both instances data in one go using.
What macro should i use or what's the format to specify both my redis instances' session i configured in zabbix agent conf?
I'm using Zabbix server 5.x and agent v2 (5.2.0) for my host. I am also using official 'redis' tempalte from Zabbix. It hosts 2 redis instance, one at port 7000, other at 8000. I'm using session name to collect data from my password protected redis instances. So far this works fine with single instance and/or pointing to either of the sessions. My zabbix agent v2 config has these:
# redis montoring with zabbix
Plugins.Redis.Sessions.Redis1.Uri=tcp://localhost:7000
Plugins.Redis.Sessions.Redis1.Password=1234
Plugins.Redis.Sessions.Redis2.Uri=tcp://localhost:8000
Plugins.Redis.Sessions.Redis2.Password=1234
My question is how can I indicate both redis instance's session names (i.e. Redis1 and Redis2) in my host's macro at Zabbix frontend? If I give either '{$REDIS.CONN.URI}=Redis1' or '{$REDIS.CONN.URI}=Redis2' it works. but collects only the one instance's data. But i want to collect both instances data in one go using.
What macro should i use or what's the format to specify both my redis instances' session i configured in zabbix agent conf?