Ad Widget

Collapse

Eventlog not trigger when value contains certain text

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rodek
    Junior Member
    • Nov 2019
    • 2

    #1

    Eventlog not trigger when value contains certain text

    Hi all,

    I am monitoring if a certain eventlog comes by and trigger when it does. This al works but now i want it NOT to be triggerd if the value contains certain text.

    Anyone got some ideas?
  • valentins.grins
    Member
    • Nov 2019
    • 38

    #2
    Hello,

    I don't see your trigger expression so can't propose the exact solution but you may look for the following: use logical operator "and" within trigger expression and function str(), please check supported trigger functions for this. If str() don't find the string in your value then it returns 0.

    Comment


    • rodek
      rodek commented
      Editing a comment
      Hello,

      Thanks for your reply. For now i have the below trigger for creations of scheduled tasks. I want exclude the logs for certain scheduled tasks.

      ({Test Rob:eventlog[System,,,,106,,skip].logeventid(106)}=1 and {Test Rob:eventlog[System,,,,106,,skip].nodata(120)}=0)
  • valentins.grins
    Member
    • Nov 2019
    • 38

    #3
    Hello, can you show the sample event log?
    Sorry there must be some confusion, what do you mean with "exclude the logs"?

    Comment


    • rodek
      rodek commented
      Editing a comment
      Hello,

      See attached file (event.png). The general tab is the value that Zabbix will get as value.
  • rodek
    Junior Member
    • Nov 2019
    • 2

    #4
    Got it to work. I tested it with what valentins.grins mentioned and it worked. I added "and {Template:eventlog[logname,,,,106,,skip].regexp(text)}=0" to the trigger.

    Comment

    Working...