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) {
|
func (ds *Zabbix) GetAllGroups(ctx context.Context) ([]Group, error) {
|
||||||
params := ZabbixAPIParams{
|
params := ZabbixAPIParams{
|
||||||
"output": []string{"name"},
|
"output": []string{"name", "groupid"},
|
||||||
"sortfield": "name",
|
"sortfield": "name",
|
||||||
"real_hosts": true,
|
"real_hosts": true,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -134,7 +134,7 @@ export class ZabbixAPIConnector {
|
|||||||
|
|
||||||
getGroups() {
|
getGroups() {
|
||||||
const params = {
|
const params = {
|
||||||
output: ['name'],
|
output: ['name', 'groupid'],
|
||||||
sortfield: 'name',
|
sortfield: 'name',
|
||||||
real_hosts: true
|
real_hosts: true
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user