Ad Widget

Collapse

Variables on Triggers Name

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Celso Annes
    Junior Member
    • Dec 2020
    • 15

    #1

    Variables on Triggers Name

    Hi, is it possible create a trigger that on his name has a variable as MACRO?

    Click image for larger version

Name:	zabbix_macro1.PNG
Views:	4722
Size:	16.7 KB
ID:	415762



    Click image for larger version

Name:	zabbix_macro2.PNG
Views:	4702
Size:	3.4 KB
ID:	415763



    I want to the return of my {$MACRO} be part of the name of my trigger alert like:


    Celso conectado por SSH test.

    Is that possible?
    How do I do that?
    Attached Files
  • Hamardaban
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • May 2019
    • 2713

    #2
    Isn't something working for you?

    Just keep in mind that a macro is just a string. they are not interpreted as commands.




    User macros can be used in:
    • item name
    • item key parameter
    • item update intervals and flexible intervals
    • trigger name and description
    • trigger expression parameters and constants (see examples)
    • many other locations - see the full list

    Comment

    • Celso Annes
      Junior Member
      • Dec 2020
      • 15

      #3
      Originally posted by Hamardaban
      Isn't something working for you?

      Just keep in mind that a macro is just a string. they are not interpreted as commands.




      User macros can be used in:
      • item name
      • item key parameter
      • item update intervals and flexible intervals
      • trigger name and description
      • trigger expression parameters and constants (see examples)
      • many other locations - see the full list
      I was trying to use MACRO, but is something else a variable that i can MAKE the agent_zabbix run on the remote host and its result be used as part of the name of the trigger.

      Thanks.

      Comment

      Working...