Ad Widget

Collapse

Macro as literal string (Do not expand) in key name

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

    #1

    Macro as literal string (Do not expand) in key name

    Hi

    I want to pass "{#SOMETHING}" as a literal string (with double quotes) to zabbix agent. Is that possible?

    The powershell script I wrote returns some objects and properties and I had to use the names like "{#raid_staus} : $value" so the zabbix can create discovery items and also collect values. But I need to pass "{#raid_staus}" as a string to the script in order to get values.

    The item key is like "raid_status[test1,"{#SOMETHING}"]. When the item gets created on the host the "{#SOMETHING}" gets expanded.

    Is it possible to make it a literal string in key?

    I tried "\{\#SOMETHING\}" or '{#SOMETHING}' but in the first case the agent got the string with slashes ( "\{\#SOMETHING\}" ) so the script couldn't fetch the value and one the second case it got expanded in the host item key.

    Zabbix_get works fine with just double qoutes or single qoutes but not the frontend.

    Thanks



Working...