Ad Widget

Collapse

list of available macros in 1.1beta5

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mconigliaro
    Senior Member
    • Jun 2005
    • 116

    #1

    list of available macros in 1.1beta5

    first of all, i want to say thanks for the new actions system. this is almost exactly what i was proposing in this old thread.

    now i was wondering if someone could post a list of available macros, so that i can produce a message like this:

    Device: (name of device)
    Trigger: (name of trigger)
    Severity: (severity of trigger)
    Current Value: (last value recieved)
    Key: (item key) <- i have scripts that look for this
  • mconigliaro
    Senior Member
    • Jun 2005
    • 116

    #2
    running
    Code:
    strings /opt/zabbix/bin/zabbix_server | grep {
    gave me this list of available macros:

    Code:
    {TRIGGER.NAME}
    {HOSTNAME}
    {IPADDRESS}
    {DATE}
    {TIME}
    {STATUS}
    unfortunately, i dont see a way to grab the current value of the item being monitored. i think we'd need a {KEY} macro (which holds the item key) in order to do something like this:

    Code:
    Last Value: {{HOSTNAME}:{KEY}.last(0)}
    then it would be possible to create one action for all triggers!

    Comment

    • Alexei
      Founder, CEO
      Zabbix Certified Trainer
      Zabbix Certified SpecialistZabbix Certified Professional
      • Sep 2004
      • 5654

      #3
      Macro {TRIGGER.KEY} has been implemented. Will be available in 1.1beta6.
      Alexei Vladishev
      Creator of Zabbix, Product manager
      New York | Tokyo | Riga
      My Twitter

      Comment

      • mconigliaro
        Senior Member
        • Jun 2005
        • 116

        #4
        awesome, thanks alexei! any chance we can get a list of macros that you're planning on implementing?

        Comment

        • mary nancy
          Senior Member
          • Jul 2005
          • 125

          #5
          {TRIGGER.KEY} is not working for triggers name

          Comment

          Working...