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

Hostgroup wildcard searches fail

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Cannot Reproduce
    • Icon: Minor Minor
    • None
    • 1.8.9
    • API (A)
    • RHEL 5.5

      Hostgroup wildcard searches do not return any hostgroups, the following JSON request is correct as per the API documentation. I have also tried with a percent symbol as the wildcard character. api version is reported as 1.3

      {"jsonrpc": "2.0", "method":"hostgroup.get","params": {"output": "extend", "search":

      {"name": "Template*"}

      ,"searchWildcardsEnabled":1},"auth": "XXXXX", "id": 0}

      Should return the Templates group, but returns an empty array. Removing the wildcard character, but leaving the searchWildcardsEnabled flag enabled returns all hostgroups with Template anywhere in the name.

      It should be possible to search for 'Templ*' or 'Templ%' and have the Templates group returned. This is not currently the case.

            Unassigned Unassigned
            maxlock Max Lock
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: