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

parameter selectDiscoveries doesn't work as expected for template.get method

    XMLWordPrintable

    Details

    • Type: Incident report
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.0
    • Fix Version/s: None
    • Component/s: API (A)
    • Labels:

      Description

      Values: refer, extend do not work for selectDiscoveries, but a value of "count" works.
      All these values work well for very similar method host.get

      Reason:
      In a revision 16195 (merge of ZBXNEXT-588) the parameter selectDiscoveries to sub-select in a method host.get has been changed to use a method discoveryrule.get (which works well) instead of item.get (doesn't work as described above)
      Unfortunately the same was not done for the method template.get

      Fix:
      Apply attached patch, which use discoveryrule.get as was done for host.get. Patch tested for refer, extend, count values for selectDiscoveries

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            zalex_ua Oleksii Zagorskyi
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: