Hi,
I'm trying to setup a trigger to create alert notifications based on the occurrence of a few strings of text within windows event logs (as well as other log files). Here is my trigger for a windows event log search:
(((({TRIGGER.VALUE}#2 | {Template_APP_Live:eventlog[My Event Log,,error].nodata(300)}#1) & {Template_APP_Live:eventlog[My Event Log,,error].change(0)}=1) & ({Template_APP_Live:eventlog[My Event Log,,error].str("Data content error")}=1 | {Template_APP_Live:eventlog[My Event Log,,error].str("File Corrupt")}=1 | {Template_APP_Live:eventlog[My Event Log,,error].str("Could not find file")}=1)) | ({TRIGGER.VALUE}=1 & {Template_APP_Live:eventlog[My Event Log,,error].str("Previous error event(s) resolved by")}#1))
What I expect this trigger to do is create an alert notification (with an appropriate action, of course) when it finds either of the following strings:
"Data content error"
"File Corrupt"
"Could not find file"
The trigger will auto-resolve when the following string is found:
"Previous error event(s) resolved by"
This works - sort of!
Unfortunately, even though the trigger says ".change(0)=1" - which I think means "if the latest event log value is different to the previous value" - the trigger is set to true ONLY FOR THE FIRST EVENT containing one of the search strings. I've also tried using ".diff(0)=1" but without success - it seems that once the trigger is true, no more alerts are generated.
I thought that using "Normal + Multiple TRUE events" would be a way of doing what I wanted, however this just repeatedly alerts for the latest event in the log (even when using either ".change" and ".diff" ?!).
I would really like to receive notification of EACH OCCURRENCE of the search strings, so our support engineers are notified when each new instance of a problem appears within the event log (or log file).
Has someone else got this working? For info, I'm on Zabbix 1.8.1.
Hope someone can help, this is a great product and the community support is invaluable to guys like me.
Danny.
NOTE: this may be irrelevant, but I'm not 100% sure what the start of the trigger is doing
i.e.
"({TRIGGER.VALUE}#2 | {Template_APP_Live:eventlog[My Event Log,,error].nodata(300)}#1)"
.. could this be this causing problems?
I'm trying to setup a trigger to create alert notifications based on the occurrence of a few strings of text within windows event logs (as well as other log files). Here is my trigger for a windows event log search:
(((({TRIGGER.VALUE}#2 | {Template_APP_Live:eventlog[My Event Log,,error].nodata(300)}#1) & {Template_APP_Live:eventlog[My Event Log,,error].change(0)}=1) & ({Template_APP_Live:eventlog[My Event Log,,error].str("Data content error")}=1 | {Template_APP_Live:eventlog[My Event Log,,error].str("File Corrupt")}=1 | {Template_APP_Live:eventlog[My Event Log,,error].str("Could not find file")}=1)) | ({TRIGGER.VALUE}=1 & {Template_APP_Live:eventlog[My Event Log,,error].str("Previous error event(s) resolved by")}#1))
What I expect this trigger to do is create an alert notification (with an appropriate action, of course) when it finds either of the following strings:
"Data content error"
"File Corrupt"
"Could not find file"
The trigger will auto-resolve when the following string is found:
"Previous error event(s) resolved by"
This works - sort of!

Unfortunately, even though the trigger says ".change(0)=1" - which I think means "if the latest event log value is different to the previous value" - the trigger is set to true ONLY FOR THE FIRST EVENT containing one of the search strings. I've also tried using ".diff(0)=1" but without success - it seems that once the trigger is true, no more alerts are generated.
I thought that using "Normal + Multiple TRUE events" would be a way of doing what I wanted, however this just repeatedly alerts for the latest event in the log (even when using either ".change" and ".diff" ?!).
I would really like to receive notification of EACH OCCURRENCE of the search strings, so our support engineers are notified when each new instance of a problem appears within the event log (or log file).
Has someone else got this working? For info, I'm on Zabbix 1.8.1.
Hope someone can help, this is a great product and the community support is invaluable to guys like me.

Danny.
NOTE: this may be irrelevant, but I'm not 100% sure what the start of the trigger is doing
i.e.
"({TRIGGER.VALUE}#2 | {Template_APP_Live:eventlog[My Event Log,,error].nodata(300)}#1)"
.. could this be this causing problems?


Comment