ZABBIX Forums  
  #1  
Old 06-12-2017, 15:47
mlodikkal mlodikkal is offline
Junior Member
 
Join Date: Nov 2017
Posts: 3
Default All values since last trigger for Log

Hi,
I try to monitor /var/log/messages on my Linux hosts.
I have this problem:
How to send info that there was more than one line with error since last update?
I my messsage I only get one error that fired Trigger. But what if there was more errors? I could send more last values but then it will send old/irelevant errors.
Is there a way to to send in 1-9 last values since last last trigger was fired?

My setup:
Item
log["/var/log/messages","err|crit|alert|emerg",10]
Type: Zabbix agent (active)
Interval:60

Trigger

{host var_log_messsage Critical:log["/var/log/messages","err|crit|alert|emerg",10].nodata(50)}=0

Action (there is no recovery message. I want only one mail if there is a problem

Trigger: {TRIGGER.NAME}
Trigger status: {TRIGGER.STATUS}
Trigger severity: {TRIGGER.SEVERITY}

Hostname: {HOST.NAME1}
Host IP: {HOST.CONN1}

Event start date/time: {EVENT.DATE} {EVENT.TIME}
Current date/time: {DATE} {TIME}
Problem duration: {EVENT.AGE}

Item values:
First {ITEM.NAME1} ({HOST.NAME1}): {ITEM.VALUE1}
Last {ITEM.NAME1} ({HOST.NAME1}): {ITEM.LASTVALUE1}

Thanks for help in advance
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 19:31.