Uploaded image for project: 'ZABBIX FEATURE REQUESTS'
  1. ZABBIX FEATURE REQUESTS
  2. ZBXNEXT-2554

Provide an API option to obtain dependent triggers for trigger.get()

    XMLWordPrintable

    Details

    • Type: Change Request
    • Status: Open
    • Priority: Trivial
    • Resolution: Unresolved
    • Affects Version/s: 2.5.0
    • Fix Version/s: None
    • Component/s: API (A)
    • Labels:

      Description

      While selectDependencies allows to obtain triggers the given trigger depends on, the reverse operation is not supported by the API.

      Application:

      I'm using a couple of purely time-dependent triggers to mask particular backup windows, following the approach I described in http://blog.zabbix.com/a-workaround-for-trigger-based-maintenance/1527/. It's difficult to find all triggers that depend on it.

      I wrote a quick implementation, that should be fairly efficient. It introduces a new option called selectDependent, which behaves analogue to selectDependencies. It is capable of returning triggers that directly depend on the given trigger.

      My actual goal is to create ad-hoc dependency graphs. Creating greater trees requires as many API invocations as there are tiers of dependency.

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            volter Volker Fröhlich
            Votes:
            8 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated: