Ad Widget

Collapse

"Problems" with Web Scenario and triggers

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • GraveSkull
    Junior Member
    • Jul 2019
    • 16

    #1

    "Problems" with Web Scenario and triggers

    Friends, good afternoon.

    I have a problem with the Zabbix Web Scenario tests.

    The configuration of Web Scenario:
    Update Interval: 2m
    Agent: Zabbix
    Steps:
    Name: Site to be monitored
    URL: URL to be monitored
    Retrieve mode: Body
    TimeOut: 60s
    Required String: String Required
    Status codes: 200

    Trigger configuration: {TEMPLATE: web.test.fail [NAME] .last ()} <> 0

    What happens? At all times the trigger reports that the monitored site is in error, but when doing manual tests the site is ok.

    I checked the Nginx and PHP-FPM logs, but no errors were found.

    So I came to the conclusion that the error can only be in Web Scenario and Trigger.

    Any suggestions on what I can do?
  • Singularity
    Member
    • Aug 2020
    • 81

    #2
    Check the status code response in the trigger like {TEMPLATE:web.response_code_for_step.last()} <> 200.
    When we use web scenario, few items are auto-created by zabbix. Choose the status response code item in the trigger and compare the value.
    There are also other ways to check that there is no error for the steps you described like {TEMPLATE:web.Failed_step_of_scenario.last()} <> 0.
    Last edited by Singularity; 01-10-2020, 17:40.

    Comment

    Working...