Ad Widget

Collapse

URL from webscenarios on Trigger Action

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • missdaae
    Junior Member
    • Oct 2020
    • 2

    #1

    URL from webscenarios on Trigger Action

    Hi all,

    I have several webscenarios created with their respective triggers: {Templase:web.test.fail[Webscenarioname].last(#3)}>=1
    and an action who notify me via email when a site is down.

    Well, I want to know if, in the action, I can add the URL from the step of the webscenario, now, only have:

    Code:
    Trigger: {TRIGGER.NAME}
    Trigger status: {TRIGGER.STATUS}
    Trigger severity: {TRIGGER.SEVERITY}
    
    
    Original event ID: {EVENT.ID}
    and the email received shows:

    Code:
    PROBLEM: Site test is down
    Trigger: Site test is down
    Trigger status: PROBLEM
    Trigger severity: High
    Original event ID: 4586114
    Are there any items to obtain the webscenario url?

    Thanks!
  • tzzui
    Junior Member
    • Sep 2020
    • 18

    #2
    I actually have the same question. What I'm doing right now is to put the URL into the URL field within the trigger configuration and then use {TRIGGER.URL} in the action to include it in the message.

    I also would like to include the error message from my web scenario in the action. Is there a way to do it?

    Comment

    • ZaBeast
      Member
      • Sep 2019
      • 42

      #3
      missdaae There is no macro for the Web scenario URL field. However, you can put the URL in the trigger name when creating the trigger. Another option is to put the Web scenario URL in the URL field of the trigger and then use {TRIGGER.URL} in the action message.

      tzzui You include the error message from the Web scenario in the notification message using {ITEM.LASTVALUE} macro (check Zabbix doc)

      For example, if you have one condition in the trigger expression (item1) and you add another condition using an item that contains an error message (item2) then you can use macro {ITEM.VALUE2} in the notification that will resolve to value of the item2 (more info).

      Comment

      Working...