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

API hostgroup.get with maintenanceids was incorrect responses.

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Unresolved
    • Icon: Trivial Trivial
    • None
    • 2.0.13, 2.2.6
    • API (A)
    • hostgroup AA has multiple maintenance schedules

      call api 'hostgroup.get' with 'maintenanceids' parameter.

      hostgroup AA has multiple maintenances XX and YY,
      but return hostgroup object has only one maintenanceid XX's ID or YY's ID

      source code of CHostGroup.php
      function get()
      section of building results of maintenanceids

      2.0.13 : line 447-448
      2.2.6 : line 386-387

      checking result array of 'maintenanceid' entity then
      initialized 'maintenances' entity

      it causes hostgroup has multiple maintenance objects, but
      result contains only last maintenance instance's id.

      to fix this issue:
      checking process of 'isset' method's parameter,
      'maintenanceid' to 'maintenances'


      sorry my poor english...

      see also:
      this issue related contents in Japanese Language;
      Zabbix-JP user forum at
      http://www.zabbix.jp/node/2935

            Unassigned Unassigned
            fripper Fripper
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: