Ad Widget

Collapse

eventlog item returning more than specified event id

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • scorbin
    Junior Member
    • Oct 2016
    • 13

    #1

    eventlog item returning more than specified event id

    I am trying to monitor Windows event log to trigger on filesystem errors. The event ID for this is 52. It works, but it also returns event id 521 as well. My item is configured as below:

    Item configuration:

    Click image for larger version

Name:	itemconfig.png
Views:	748
Size:	83.5 KB
ID:	393567

    The question is how do I get it to return ONLY event id 52. I have tried with and without quotes to no avail.. As per the manual it seems that it should return only event id 52 unless I use some form of regex.


    Here is an example of an incorrect event id being picked up
    Click image for larger version

Name:	eventidproblem1.png
Views:	851
Size:	16.0 KB
ID:	393565

    Here is an example of a correct event id being picked up
    Click image for larger version

Name:	eventidproblem1.png
Views:	736
Size:	66.5 KB
ID:	393566

    These are different hosts but use the same item from the same template.
  • gofree
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Dec 2017
    • 400

    #2
    play with https://regex101.com/
    eventid - regular expression describing the event identifier(s) - read docu ore carefully youll see some examples. guess your solution will be ^52$

    Comment

    • scorbin
      Junior Member
      • Oct 2016
      • 13

      #3
      Thanks a lot gofree. That looks like it will definitely work. I just figured that it would only trap that exact event id by default and thought maybe I was doing something wrong.

      Comment

      Working...