问题原文
原帖链接 · ras212 · CC BY-SA 4.0
I use Zabbix 3.4 and I am trying to configure Zabbix to send an alarm only after 4 attemps. This alarm checks if the HTTP server returns 200 code. I have tried to set up a Web Scenario, but in the Zabbix Docs they say this:
The number of attempts for executing web scenario steps. In case of network problems (timeout, no connectivity, etc) Zabbix can repeat executing a step several times. The figure set will equally affect each step of the scenario. Up to 10 attempts can be specified, default value is 1. Note: Zabbix will not repeat a step because of a wrong response code or the mismatch of a required string. This parameter is supported starting with Zabbix 2.2.
已采纳解答
原帖链接 · Richlv · CC BY-SA 4.0
The quoted section is about retrying inside the web scenario. You will have to use trigger functions.
Checking the return code item, you can use in the expression count(#4,200)=0.
While this question is a bit different, the ultimate solution is the same as in https://stackoverflow.com/questions/43605281/how-to-teach-zabbix-to-be-smart-about-short-spikes-in-events .
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
