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

Zabbix API it is not possible to get Subgroups with group=

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Won't fix
    • Icon: Major Major
    • None
    • 3.4.6
    • API (A)
    • None

      Since we have subgroups it looks like that the API can't handle it

      Steps to reproduce:
      I use the ZabbixPython API and want to get all triggers in a group including all subgroups eg:

      trigger = zapi.trigger.get(only_true=1,skipDependent=1,monitored=1,active=1,output='extend',expandDescription=1,selectHosts=1,selectItems=1,group='Berlin/*',expandExpression=1,filter = {"value":1})
      

      but it didn't work.

      Result:
      don't get all triggers within a subgroup
      Expected:
      that the code above works or something like:

      trigger = zapi.trigger.get(only_true=1,skipDependent=1,monitored=1,active=1,output='extend',expandDescription=1,selectHosts=1,selectItems=1,group='Berlin',includesubgroups=1,expandExpression=1,filter = {"value":1})
      

            Unassigned Unassigned
            shad0w Stefan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: