Ad Widget

Collapse

Zabbix Item Parameters - Username, Password gets expanded in Emails {Item.key1}

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • registration_is_lame
    Senior Member
    • Nov 2007
    • 148

    #1

    Zabbix Item Parameters - Username, Password gets expanded in Emails {Item.key1}

    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:

    Code:
    UserParameter=mysql.ping[*],mysqladmin -u$1 -p$2 ping | grep -c alive
    And Zabbix Item key is:

    Code:
    mysql.ping[{$ZABBIX_USER},{$ZABBIX_PWD}]
    Email content when we receive alert looks like:

    Code:
    Item values:
    
    1. Mysql Ping Status on WebServer1 (WebServer1:mysql.ping[user1,P@ssw0rd]): 1 Success.
    Last edited by registration_is_lame; 28-03-2018, 09:22.
  • registration_is_lame
    Senior Member
    • Nov 2007
    • 148

    #2
    Bump. Any one has suggestions other than removing trigger.key? Have a strict policy not to store passwords inside files and can't have blank password for some applications like sqlcmd...
    Last edited by registration_is_lame; 27-03-2018, 20:21.

    Comment

    Working...