Hello,
I would like to be able to have the server load templates or at least macros from a file as opposed to having to go through the UI. The other option would be to tell the server to defer all macros to the clients.
For example, to use to monitor mysql via Active Agent 2, I was able to set the mysql login and password in the agent config file:
/etc/zabbix/zabbix_agent2.d/plugins.d/mysql.conf:
Plugins.Mysql.Default.User=someuser
Plugins.Mysql.Default.Password=xxxxx
... but setting this made no difference:
Plugins.Mysql.Default.Uri=unix:/var/lib/mysql/mysql.sock
I had to actually edit the template via the server UI:

The monitor would not work without explicitly setting this macro.
I am sure this will come up for other services as well.
Is there any way around these point-and-click steps that are wholly unscalable, preferably via a basic config file?
Brian
I would like to be able to have the server load templates or at least macros from a file as opposed to having to go through the UI. The other option would be to tell the server to defer all macros to the clients.
For example, to use to monitor mysql via Active Agent 2, I was able to set the mysql login and password in the agent config file:
/etc/zabbix/zabbix_agent2.d/plugins.d/mysql.conf:
Plugins.Mysql.Default.User=someuser
Plugins.Mysql.Default.Password=xxxxx
... but setting this made no difference:
Plugins.Mysql.Default.Uri=unix:/var/lib/mysql/mysql.sock
I had to actually edit the template via the server UI:
The monitor would not work without explicitly setting this macro.
I am sure this will come up for other services as well.
Is there any way around these point-and-click steps that are wholly unscalable, preferably via a basic config file?
Brian
Comment