Ad Widget

Collapse

Trigger based on latest data output

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • lovezabbixaj
    Junior Member
    • Jan 2016
    • 9

    #1

    Trigger based on latest data output

    Hi,

    I am using item key "eventlog[Application,,,Winlogon,4005,,]" and I am getting correct output in the latest data section.

    Output: The Windows logon process has unexpectedly terminated.

    Can I have a trigger based on this data. Something like a trigger which gets generated if the output has string "terminated" in it ?

    Please help.
    Thanks
  • Firm
    Senior Member
    • Dec 2009
    • 342

    #2
    {<host>:eventlog[Application,,,Winlogon,4005,,].str(terminated)}=1

    Comment

    • lovezabbixaj
      Junior Member
      • Jan 2016
      • 9

      #3
      Thanks a lot! This worked .
      But this will send a trigger if the string is found anywhere in the output. Is there a way to get a trigger if the output matches the exact string.

      For eg: if output is only "terminated." I want a trigger to happen if the output is only "terminated".
      It should not trigger if output is "The Windows logon process has terminated." where there is a string "terminated" somewhere in the output.

      Comment

      • Firm
        Senior Member
        • Dec 2009
        • 342

        #4
        {<host>:eventlog[Application,,,Winlogon,4005,,].regexp("^terminated$")}=1

        P.S. Zabbix suggests to create trigger for character/text items.
        Last edited by Firm; 16-02-2016, 12:57.

        Comment

        Working...