I have a Web Scenario setup to check the response code of a site (200 is required), that works perfectly, but the problem is that I can't figure out how to get the trigger to alert only if both of the last 2 checks failed.
Trigger
Expression: {Template Web Status:web.test.fail[HTTP code response].count(#2,200)}>1
Web Scenario
Update interval: 1m
Attempts: 2
Step 1 of Scenario
URL: {HOST.DNS}
Follow redirects: true
Retrieve mode: body
Timeout: 15s
Required status codes: 200
Server Info
OS: Ubuntu 18.04
Zabbix: 5.0.2
Trigger
Expression: {Template Web Status:web.test.fail[HTTP code response].count(#2,200)}>1
Web Scenario
Update interval: 1m
Attempts: 2
Step 1 of Scenario
URL: {HOST.DNS}
Follow redirects: true
Retrieve mode: body
Timeout: 15s
Required status codes: 200
Server Info
OS: Ubuntu 18.04
Zabbix: 5.0.2

Comment