Ad Widget

Collapse

Operational Data macro for Web Scenario error

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • markfree
    Senior Member
    • Apr 2019
    • 868

    #1

    Operational Data macro for Web Scenario error

    By using Web scenarios we can collect some usefull data, like download speed, response time, error message, etc.

    I'm using a trigger that checks "web.test.fail[Scenario]" for errors and its "operational data" uses this macro "Step: {ITEM.VALUE}".

    Sometimes a scenario step fails because of conection reset, timeout or unresolved name.
    Code:
    04/07/2021 09:49:25 PM SSL connect error: TCP connection reset by peer
    03/27/2021 11:09:53 PM Timeout was reached: Resolving timed out after 15523 milliseconds
    03/27/2021 11:07:13 PM Couldn't resolve host name: Could not resolve host: plataforma-cabb.intranet.bb.com.br; Unknown error
    So, I wish to display that error message at "operational data" using a macro like the one above, but could not find one to display Web scenario last error message.

    Any idea on how to do so?
  • dimir
    Zabbix developer
    • Apr 2011
    • 1080

    #2
    That is coming from the web server log, right?

    Comment

    • markfree
      Senior Member
      • Apr 2019
      • 868

      #3
      Yes. Zabbix "Latest data" returns those values from "web.test.error" item.
      Last edited by markfree; 12-04-2021, 18:35.

      Comment

      Working...