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

Escalator should expand action's macros only when needed

XMLWordPrintable

      This issue is continuation of ZBX-4321

      I suggest to reconsider a design when escalator should expand the macros from action's "Default subject" and "Default message"

      Currently it does expanding all macros as first step disregarding that for instance:

      • according to operation condition(s) nothing to do;
      • operation type it's "Remote command";
      • operation does not use "Default message" (ZBX-4321 related);
      • escalation step should be skipped;
      • insufficient user permission;
      • allowed period of time doesn't passed;
      • etc.

      I suggest to expand macros even after function "check_time_period()" i.e. after all internal conditions will be passed. Once expanded and prepared values should be cashed for next action's operations, steps.

      Benefits: less loaded escalator, less loaded SQL server, less lines in the DebugLog when no operations executed

      Would be nice to conclude the step of expanding "Default subject" and "Default message" to a separate function because currently in the DebugLog are not visible "borders" where this step is started and finished.

      Demo debuglog (escalator only) is attached.

            Unassigned Unassigned
            zalex_ua Oleksii Zagorskyi
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: