Hello,
I'm doing some basic log monitoring on Linux using the following item/trigger:
log[/var/log/messages,"error"]
{Template OS Linux:log[/var/log/messages,"error"].regexp()}=1
This is working fine but I'd like to be able to exclude certain strings from firing the trigger. For example, I might want to see "disk error" but not "gnome error". How would I modify my item/trigger to NOT fire if "gnome" is included in a line that also contains error? I've tried a few different things to no avail. Please help. Thanks.
I'm doing some basic log monitoring on Linux using the following item/trigger:
log[/var/log/messages,"error"]
{Template OS Linux:log[/var/log/messages,"error"].regexp()}=1
This is working fine but I'd like to be able to exclude certain strings from firing the trigger. For example, I might want to see "disk error" but not "gnome error". How would I modify my item/trigger to NOT fire if "gnome" is included in a line that also contains error? I've tried a few different things to no avail. Please help. Thanks.