Fix fetching host groups, #1470

This commit is contained in:
Alexander Zobnin
2022-07-08 14:48:57 +03:00
parent a406c9c834
commit d2645a43b2
2 changed files with 2 additions and 2 deletions

View File

@@ -393,7 +393,7 @@ func (ds *Zabbix) GetAllHosts(ctx context.Context, groupids []string) ([]Host, e
func (ds *Zabbix) GetAllGroups(ctx context.Context) ([]Group, error) {
params := ZabbixAPIParams{
"output": []string{"name"},
"output": []string{"name", "groupid"},
"sortfield": "name",
"real_hosts": true,
}