Ad Widget

Collapse

Zabbix log monitoring: Do not send "resolved" messages

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mrmichael
    Junior Member
    • Jan 2022
    • 2

    #1

    Zabbix log monitoring: Do not send "resolved" messages

    I use Zabbix to scan my logs for certain keywords. This is my item (configured as an active check, type of information "log"):

    Code:
    logrt["/var/log/syslog(\.[0-9])?$","(error|fail|failed)",,,skip]
    And the corresponding trigger:

    Code:
    {HOSTNAME:logrt["/var/log/syslog(\.[0-9])?$","(error|fail|failed)",,,skip] .iregexp("(error|fail|failed)")}=1
    and
    {HOSTNAME:logrt["/var/log/syslog(\.[0-9])?$","(error|fail|failed)",,,skip].nodata(10)}=0
    The problem is that I get two emails each time there's a log entry that triggers the pattern, one is the PROBLEM message and the second is the RESOLVED message.

    Does anyone know how to get rid of the second (RESOLVED) message and receive only one message instead?
  • mrmichael
    Junior Member
    • Jan 2022
    • 2

    #2
    Anyone? Anyone?

    Comment

    • ik_zelf
      Member
      • Feb 2015
      • 60

      #3
      This can be done in the trigger action[s]. For your trigger don't create a resolved operation. Maybe you can use a tag to filter on this.

      Comment


      • nibedita@jena
        nibedita@jena commented
        Editing a comment
        can you please write perticular code.
    Working...