Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-2624

Alerts do not sent when monitoring log or trapper item

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Duplicate
    • Icon: Major Major
    • 1.8.3
    • 1.8.2
    • Server (S)
    • None
    • zabbix 1.6.x , 1.8.x

      Monitoring configurations are followings.

      Item configuration:

      • Description: Log of $1
      • Key: log[/tmp/test.log]
      • Type: Zabbix Agent (Active)
      • Type of information: Log

      Trigger configuration:

      • Descriptopn: Error log
      • Expression: {Zabbix Server:log[/tmp/test.log].str(error)}

        =1

      • Event generation: Normal + Multiple TRUE events

      Action configuration:

      • Name: alert mail
      • Event source: Trigger
      • Enable escalations: Uncheck
      • Default subject/message: Default
      • Recovery message: Check
      • Recovery subject/message: default
      • Action conditions: Trigger value = PROBLEM
      • Action operations: Send message to User "Admin"

      I added following lines to /tmp/test.log, but messages do not sent. (screenshot 1-1, 1-2)

      ----------
      warning
      error
      error
      error
      warning
      warning
      error
      warning
      ----------

      It seems that the cause of this problem is handling of inserting event to escalation table and escalator process.
      I created the patch for this problem, and added the same lines to /tmp/test.log. (screenshot 2-1, 2-2)
      Then, I tested uncheck "Recovery message" case. (screenshot 3-1, 3-2)

      I would appreciate it if you could review this patch and fix this problem!

        1. screenshot 1-1.jpg
          95 kB
          Kodai Terashima
        2. screenshot 1-2.jpg
          124 kB
          Kodai Terashima
        3. screenshot 2-1.jpg
          96 kB
          Kodai Terashima
        4. screenshot 2-2.jpg
          118 kB
          Kodai Terashima
        5. screenshot 3-1.jpg
          94 kB
          Kodai Terashima
        6. screenshot 3-2.jpg
          115 kB
          Kodai Terashima
        7. zabbix-1.8.2-sending_each_alert_for_logmonitoring.patch
          2 kB
          Kodai Terashima

            Unassigned Unassigned
            kodai Kodai Terashima
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: