S
S
Sergey Alex2021-06-23 10:58:11
Zabbix
Sergey Alex, 2021-06-23 10:58:11

Recovery trigger not working?

In general, it should work if the file has more than 10 characters when the file is changed, it closes and reopens if the file has more than 10 characters.

zabbix version 5.0.6
Problem expression
{Zabbix server:vfs.file.contents[/opt/Cos/38.txt].strlen()}>10
Recovery expression
{Zabbix server:vfs.file.contents[/opt/Cos/ 38.txt].diff()}=1

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
ky0, 2021-06-23
@AleksandrovSerj

I recommend you use diff vfs.file.cksum. vfs.file.contentslimited in size, and changes can occur somewhere at the end, for example - then the trigger will not work.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question