Ad Widget

Collapse

Windows eventlog + trigger but using localtime

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • guille.rodriguez
    Senior Member
    • Jun 2022
    • 114

    #1

    Windows eventlog + trigger but using localtime

    Hi, yesterday I had to create a new item to query the Windows log event looking for a specific event.

    The Item works and I receive the data in Zabbix. The problem comes at the time of making the alarm because it takes into account the date and time of integration in Zabbix instead of the localtime of the machine (which is the one that interests me).

    Item definition

    Code:
    eventlog[System,,,, "Application Popup",,,,skip]
    with a preprocessing to filter only by the .exe that generates this popup.


    Click image for larger version

Name:	vQPk50m.png
Views:	563
Size:	78.8 KB
ID:	454141


    Trigger definition

    Code:
    nodata(/Template DABS v2/eventlog[System,,,"Application Popup",,,skip],1h)=0

    Click image for larger version

Name:	IDKZPn4.png
Views:	490
Size:	103.7 KB
ID:	454142


    It works fine on computers that are all time connected, but when a computer was offline for a few ours and reconnects, if there was an Event that fires 4h ours ago, when Zabbix Server gets , fires the trigger... but the real time of event was 4h ago... so I want to force Zabbix to use "LocalTime" column



    Example

    Event was generated on Machine yesterday, last event at 23:40 but Zabbix saves with his timestamp at 7:37 AM (today)

    Click image for larger version

Name:	qZIfZY5.png
Views:	496
Size:	106.1 KB
ID:	454143

    And fires a Trigger

    Click image for larger version

Name:	Jb4ylww.png
Views:	493
Size:	22.7 KB
ID:	454144

    There is a way to tell in trigger something like "and event.localtime < 1h"
  • Scanto
    Junior Member
    • Jul 2015
    • 7

    #2
    I also want to set up triggers using the local time but couldn't find a way to do this so far.

    Comment

    • 7neon7
      Junior Member
      • Feb 2021
      • 7

      #3
      I join. I am also looking for a way to use local time.

      Comment

      Working...