I have a custom UserParameter item that accepts Username and Password from Global/Template Macro. The value's are not expanded when creating items, but when alert is received {Item.key1} is expanded to "mysql.ping[user1,P@ssw0rd]".
Is there a way to hide the password or disable Global or Template macro expansion only for Actions? I know we can add the password within the UserParameter line but that is my last resort or remove password.
In the Manual examples, they do say we can pass credentials but I'm not sure if I'm missing something that will disable Macro expansion in emails?
UserParameter.conf file:
And Zabbix Item key is:
Email content when we receive alert looks like:
Is there a way to hide the password or disable Global or Template macro expansion only for Actions? I know we can add the password within the UserParameter line but that is my last resort or remove password.
In the Manual examples, they do say we can pass credentials but I'm not sure if I'm missing something that will disable Macro expansion in emails?
UserParameter.conf file:
Code:
UserParameter=mysql.ping[*],mysqladmin -u$1 -p$2 ping | grep -c alive
Code:
mysql.ping[{$ZABBIX_USER},{$ZABBIX_PWD}]
Code:
Item values: 1. Mysql Ping Status on WebServer1 (WebServer1:mysql.ping[user1,P@ssw0rd]): 1 Success.
Comment