-
Problem report
-
Resolution: Fixed
-
Major
-
6.2.5
-
None
-
Rocky Linux release 8.7 (Green Obsidian)
zabbix-web.noarch 6.2.5-release1.el8
zabbix-web-deps.noarch 6.2.5-release1.el8
zabbix-web-mysql.noarch 6.2.5-release1.el8
-
Sprint 95 (Dec 2022)
-
0.125
Steps to reproduce:
- Create host without interfaces and note down the host ID and host name
- Perform API request "host.get" with params "{"filter": {"hostid": "<HOST ID>"}}"
- No results are returned
- Perform API request "host.get" with params "{"filter": {"host": "<HOST NAME>"}}"
- Host results are returned correctly
- Create SNMP interface on host
- Perform API request "host.get" with params "{"filter": {"hostid": "<HOST ID>"}}"
- Host results are returned correctly
Result:
Using host.get to retrieve host information using filter "hostid", returns empty host results if the host has no interfaces configured.
Using filter "host", host results are correctly returned. Add any interface to host and use filter "hostid", host results are correctly returned.
Expected:
Using host.get with filter "hostid" should return results if the hostid exists, whether or not the host has interface configured.