Ad Widget

Collapse

Zabbix 3.2.x upgrade and actions with complex conditions

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • tim.mooney
    Senior Member
    • Dec 2012
    • 1427

    #1

    Zabbix 3.2.x upgrade and actions with complex conditions

    We're currently on Zabbix 3.0.4, looking to upgrade to 3.2.3.

    I've been through many Zabbix upgrades, including from 2.4.x to 3.0.x, but I'm having trouble understanding a worrisome note in the release notes about actions that will be disabled as part of the update.

    Specifically, the upgrade_notes_320 document has a section about Recovery Operations, which says

    During database upgrade actions with simple conditions are updated automatically while actions having complex conditions are disabled with a corresponding log message. The disabled actions must be updated manually.
    (emphasis is mine).

    The upgrade notes has an overview of what the upgrade will do, but even reading the overview, it's not clear to me whether we'll be impacted or not.

    For example, if one of our existing actions has Action Conditions of

    Code:
       Type of calculation: A and B and (C or D) and (E or F or G or H or I or J)
        Conditions:
                   A 	Maintenance status not in maintenance
                   B	Trigger value = PROBLEM
                   C	Trigger severity = Disaster
                   D	Trigger severity = High
                   E	Host group = Our_HostGroup_1
                   F	Host group = Our_HostGroup_2
                   G	Host group = Our_HostGroup_3
                   H	Host group = Our_HostGroup_4
                   I        Host group = Our_HostGroup_5
                   J	Host group = Our_HostGroup_6
    This is certainly a complex set of conditions -- it applies if the host group is any one of 6 of our host groups. Since the action condition uses OR, does that mean that this action will be disabled and we'll need to manually change it?

    If it will be disabled, then what are we supposed to change it to? This current action has nothing to do with recovery; it has to do with determining who should receive an alert, based on the severity and whether it applies to any number of host groups.

    Any additional information anyone can provide will be greatly appreciated.

    Thanks,

    Tim
  • tim.mooney
    Senior Member
    • Dec 2012
    • 1427

    #2
    Originally posted by tim.mooney
    We're currently on Zabbix 3.0.4, looking to upgrade to 3.2.3.

    I've been through many Zabbix upgrades, including from 2.4.x to 3.0.x, but I'm having trouble understanding a worrisome note in the release notes about actions that will be disabled as part of the update.

    Specifically, the upgrade_notes_320 document has a section about Recovery Operations, which says

    Quote:
    Code:
    During database upgrade actions with simple conditions are updated automatically while actions having complex conditions are disabled with a corresponding log message. The disabled actions must be updated manually.
    192 views and no responses. Surely someone has been through the 3.0.x to 3.2.x upgrade and can shed some light on what this cryptic message in the upgrade notes actually means.

    Thanks,

    Tim
    Last edited by tim.mooney; 25-05-2017, 17:40.

    Comment

    • Atsushi
      Senior Member
      • Aug 2013
      • 2028

      #3
      The conditions described as examples are not complicated conditions.

      Even if conversion is actually done, the condition of "Trigger value" will only be deleted.
      Since it is a simple condition, the action is enabled as it is.

      Code:
      Type of calculation
      A and (B or C) and (D or E or F or G or H or I)
      Conditions
      Label	Name	Action
      A	Maintenance status not in maintenance
      B	Trigger severity = Disaster
      C	Trigger severity = High
      D	Host group = Our_HostGroup_1
      E	Host group = Our_HostGroup_2
      F	Host group = Our_HostGroup_3
      G	Host group = Our_HostGroup_4
      H	Host group = Our_HostGroup_5
      I	Host group = Our_HostGroup_6
      The output of Zabbix server startup log is as follows.

      Code:
       10932:20170526:160915.579 Action "<Action Name>" condition "Trigger value = PROBLEM" will be removed during database upgrade: this type of condition is not supported anymore
      However, I think that the setting of the action actually set is different, so please do it after obtaining the backup when upgrading.
      It is recommended to prepare a verification environment separately.

      As an example where actions are disabled, actions whose "Trigger value" value is "PROBLEM" or "OK" are invalidated.
      In this case Zabbix server startup logs are recorded as follows.

      Code:
       21444:20170526:164340.163 Action "<Action name>" will be disabled during database upgrade: conditions might have matched success event which is not supported anymore.
      For other disabled conditions please read the manual again.

      Comment

      Working...