Fix fetching host groups, #1470
This commit is contained in:
@@ -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,
|
||||
}
|
||||
|
||||
@@ -134,7 +134,7 @@ export class ZabbixAPIConnector {
|
||||
|
||||
getGroups() {
|
||||
const params = {
|
||||
output: ['name'],
|
||||
output: ['name', 'groupid'],
|
||||
sortfield: 'name',
|
||||
real_hosts: true
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user