Hi all.
I would to set up an item that check if a string matches in a rotate log file during a setted interval (N seconds): when it match in the interval, the trigger have to generate a PROBLEM event, but, if in the next interval it doens't match anymore, the trigger have to generate an OK event.
I've tried in this way:
Item:
Type: Zabbix Agent (active)
Key: logrt["/path/to/file.log","String","UTF-8",10]
Type of information: Log
Update interval (in sec): N
Trigger:
Expression: {host:logrt["/path/to/file.log","String","UTF-8",10].str(String)}=1
Event generation: Normal
The trigger generate a PROBLEM event as soon as the String match, but it still remains in this state in spite of the String doesn't match in next update interval.
I hope I've been as clear as possible...
Any ideas?
I would to set up an item that check if a string matches in a rotate log file during a setted interval (N seconds): when it match in the interval, the trigger have to generate a PROBLEM event, but, if in the next interval it doens't match anymore, the trigger have to generate an OK event.
I've tried in this way:
Item:
Type: Zabbix Agent (active)
Key: logrt["/path/to/file.log","String","UTF-8",10]
Type of information: Log
Update interval (in sec): N
Trigger:
Expression: {host:logrt["/path/to/file.log","String","UTF-8",10].str(String)}=1
Event generation: Normal
The trigger generate a PROBLEM event as soon as the String match, but it still remains in this state in spite of the String doesn't match in next update interval.
I hope I've been as clear as possible...
Any ideas?
Comment