I am new to zabbix and I am trying to monitor multiple mysql databases.
I have one server with two docker container that each have one mysql database.
To monitor the first database I used the MySQL by Zabbix agent
template which worked fine.
But now I would like to monitor the second database.
The two database have different ports.
So I thought about some solutions:
First, was just using the same template again and just changing the port inside the Macros
. I have not found a way to use exactly the same but just change the port, I am not sure that's even possible.
Second, duplicate the template to be able to use it inside the same host. But that would mean that if one day I have 10 databases I would need 10 templates
Last idea was to create a new host for each database, but connected to the same agent. I don't now if it's possible, but again that would mean if I have 10 databases I need 10 hosts.
Each idea that I have always have some downside, what would be the best option ? Do you have any suggestions ?