Ad Widget

Collapse

Zabbix calculated item on failed step scenario not working

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • leoonardoo
    Junior Member
    • Sep 2017
    • 6

    #1

    Zabbix calculated item on failed step scenario not working

    I'm trying to setup a calculated item based on "Failed step of scenario". So I tried:

    Code:
    last("web.test.error[MyScenario]")
    But it didn't work, the error message is:

    Code:
    Cannot evaluate expression: "Cannot evaluate function "last()": not enough data.".
    While on the same scenario the "in" works with no problems:

    Code:
    last("web.test.in[MyScenario,,bps]")
    Why? How can I translate a problem in the web scenario to a very simple 0(down)/1(up) calculated item???
  • leoonardoo
    Junior Member
    • Sep 2017
    • 6

    #2
    YES! I was using the wrong item, I meant to use "web.test.fail" not web.test.error !!!

    Thank you!

    Comment

    • cyber
      Senior Member
      Zabbix Certified SpecialistZabbix Certified Professional
      • Dec 2006
      • 4807

      #3
      Ehh.. again .. documentation, documentation, documentation..
      https://www.zabbix.com/documentation...nitoring/items
      Last error message of scenario <Scenario> This item returns the last error message text of the scenario. A new value is stored only if the scenario has a failed step. If all steps are ok, no new value is collected.
      Item key: web.test.error[Scenario]
      Type: Character
      If your scenario has not had any errors, you don't have any data to evaluate, exactly as error says. And for creating a trigger, this item is pretty useless. You should use web.test.fail[Scenario]<>0

      Comment

      Working...