Hello,
I'm trying to configure a trigger that'll send me an email notification if the string "error" is found in /var/log/messages. I would like to be alerted on every NEW line in the log file that contains the string. Here is my configuration:
ITEM:
log[/var/log/messages,"error"]
TRIGGER:
{davms120022:log[/var/log/messages,"error"].nodata(300)}=0
* PROBLEM event generation mode = Multiple
With this configuration, if I echo "error" to the logfile once, a new problem will be created every 30 seconds (item update interval) and I'll get bombarded with email.
I am looking to only generate a new problem if the value is NEW. (i.e., a new line) Can someone please enlighten me as to how I need to modify the trigger to accomplish this?
Thanks,
- Bill
I'm trying to configure a trigger that'll send me an email notification if the string "error" is found in /var/log/messages. I would like to be alerted on every NEW line in the log file that contains the string. Here is my configuration:
ITEM:
log[/var/log/messages,"error"]
TRIGGER:
{davms120022:log[/var/log/messages,"error"].nodata(300)}=0
* PROBLEM event generation mode = Multiple
With this configuration, if I echo "error" to the logfile once, a new problem will be created every 30 seconds (item update interval) and I'll get bombarded with email.
I am looking to only generate a new problem if the value is NEW. (i.e., a new line) Can someone please enlighten me as to how I need to modify the trigger to accomplish this?
Thanks,
- Bill
Comment