A
A
Arsen2016-12-25 14:11:52
Windows
Arsen, 2016-12-25 14:11:52

Why doesn't Zabbix return OK?

Good afternoon!
Configured Zabbix to monitor a specific file for the presence of a "dash" (-) sign in it with a trigger like this Expression:
{%IP-address%:log["C:\Program Files (x86)\path_to_file\error.log"] .str(-)}=1
As soon as errors with lines containing the "dash" sign are written to the file, notifications from Zabbix are received with the PROBLEM mark in the subject line - in fact, normal and correct behavior.
But as soon as I correct all the errors and the file is cleared (file size 0 bytes), then I expect to receive an email with OK in the subject, which, however, does not happen.
Where am I making a mistake?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Konkase, 2016-12-26
@arsabovyan

Example:
{%IP-address%:log["C:\Program Files (x86)\path_to_file\error.log"].str(-)}=1&{%IP-address%:log["C:\Program Files (x86)\path_to_file\error.log"].nodata(180)}=0

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question