R
R
RuRoman2021-11-25 12:52:18
ubuntu
RuRoman, 2021-11-25 12:52:18

How to configure zabbix trigger to have text?

Zabbix checks the site, a script of 2 check steps is configured, the first step is to get the title, the second step is to search the page for the desired text.

Set up a trigger that fires if the title is not 200

last(/Узел_Сети/web.test.rspcode[Сценарий,Шаг])<>200


Everything works fine, but how to set up a trigger that will fire if the page does not contain the desired text?

There is very little experience in configuring zabbix, but I didn’t find it on the site, or rather, zabbix swears at the examples that are.

So he swears: I
last(/Узел_Сети/web.test.fail[Сценарий,Шаг])=0

re-read a lot, I didn’t find it everywhere, zabbix swears at everything.

{host:web.test.error[Сценарий,Шаг].strlen()}>0

That doesn't work either....

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
SterhXXX, 2022-01-09
@SterhXXX

According to the syntax, I see that version 5.4 is worth it. They just remade it in it. I have a similar problem, I can not pick up the desired line from the logs. Prior to 5.4 there was a str parameter. Try to dig in this direction. Solve the issue - share.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question