ZABBIX Forums  

Go Back   ZABBIX Forums > Zabbix Discussions and Feedback > Zabbix Help

Thread Tools Display Modes
Old 19-12-2017, 11:06
VladM VladM is offline
Junior Member
Join Date: Dec 2017
Posts: 2
Question Use “local time” data from log type item in Zabbix

I am using zabbix_server (Zabbix) 3.0.8 I have the following zabbix item:

item = log[/path/to/file.log,"Processing file"]

I also configured this item to be able to "read" log timestamp [with "log time format"="yyyypMMpddphh:mm:sspppp"]

Zabbix stores this data in a 3 column table:

HTML Code:
Timestamp              Local time                Log string
12/14/2017 01:02:36 PM 2017-12-14T13:02:33+01:00 Processing file foo.xml
12/14/2017 01:02:36 PM 2017-12-14T13:02:29+01:00 Processing file bar.xml
How can I create a trigger that uses the Local Time data?

For example I want zabbix to alert me if "Local time" of the last item value is older than 1 hour relative to current time [NOW - LOCAL TIME of last item value >= 3600s]

Last edited by VladM; 20-12-2017 at 16:04. Reason: formatting
Reply With Quote

item, localtime, log, trigger

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 05:24.