Ad Widget

Collapse

Escaping macro in trigger description?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • GChmurka
    Junior Member
    • Jun 2024
    • 21

    #1

    Escaping macro in trigger description?

    Maybe someone knows the solution.
    I'd like to include a hint in the trigger description on how to off trigger with a specific context macro, so I want to display the macro name itself (e.g., If is normal set: {$MACRO:"{#LLD}"} ) as plain text.
    However, instead of showing the macro, Zabbix replaces it with its value.

    Is there any way to escape a macro in the description so it doesn’t get expanded?
    I’ve tried using double braces, slashes (//), etc., but nothing seems to work.
  • Brambo
    Senior Member
    • Jul 2023
    • 245

    #2
    If you want to show the text of $MACRO then just create a extra macro with value the text of the other macro. If you So you could have {$THEREALMACRO} with value {$TheMacroTextYouWantToShow} When you want the {#LLD} macro shown as processed text than the end result would be something like: {$THEREALMACRO}:"{#LLD}"}
    I actually don't see any real use case for your scenario but maybe you do

    Comment

    Working...