Ad Widget

Collapse

How do I set a trigger on the timestamp in a log

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mergwyn
    Junior Member
    • Sep 2014
    • 1

    #1

    How do I set a trigger on the timestamp in a log

    Hi,

    I am using Zabbix 2,2, to monitor a custom logfile on a windows machine. I am able to successfully get log values that indicate a backup has been successful.

    Code:
    Timestamp		Local time		Value
    2014.Sep.01 16:23:12	2014.Aug.30 02:32:56	2014-08-30 02:32:56 [M:0d,T/P:6148/8144] [YinFei:DsBackup] : Disk/Partition backup completed successfully.
    2014.Sep.01 16:23:12	2014.Aug.29 18:01:43	2014-08-29 18:01:43 [M:0d,T/P:8600/7328] [YinFei:DsBackup] : Disk/Partition backup completed successfully.
    I'd like to set up a trigger such that if the backup has not been successful in the last day (as per the timestamp from the log file and captured in "local time" in the history screen).

    I have a trigger that is using "nodata", but that seems to work on timestamp rather than local time.

    Is there anyway to make the trigger use the timestamp from the log file?

    Many thanks.
Working...