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

With trigger correlation recovery events are created even if no problems are recovered

XMLWordPrintable

    • Sprint 29
    • 1

      Index: src/zabbix_server/events.c
      ===================================================================
      --- src/zabbix_server/events.c	(revision 78371)
      +++ src/zabbix_server/events.c	(working copy)
      @@ -2194,12 +2194,13 @@
       		}
       		else
       		{
      -			/* With trigger correlation enabled the recovery event recovers   */
      -			/* all problem events generated by the same trigger and matching  */
      -			/* recovery event tags. Te trigger value is set to OK only if all */
      -			/* problem events were recovered.                                 */
      +			/* With trigger correlation enabled the recovery event recovers    */
      +			/* all problem events generated by the same trigger and matching   */
      +			/* recovery event tags. The trigger value is set to OK only if all */
      +			/* problem events were recovered.                                  */
       
       			value = TRIGGER_VALUE_OK;
      +			event->flags = ZBX_FLAGS_DB_EVENT_UNSET;
       
       			for (j = 0; j < problems.values_num; j++)
       			{
      @@ -2211,6 +2212,7 @@
       					{
       						recover_event(problem->eventid, EVENT_SOURCE_TRIGGERS,
       								EVENT_OBJECT_TRIGGER, event->objectid);
      +						event->flags = ZBX_FLAGS_DB_EVENT_CREATE;
       					}
       					else
       						value = TRIGGER_VALUE_PROBLEM;
      

            viktors.tjarve Viktors Tjarve
            wiper Andris Zeila
            Team A
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: