You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
populate_hostid_cache uses the visible name of the host while everything else uses the real name.
It should also not exclude not monitored(disabled) host, otherwise define_host_monitoring_status is useless in bulk operations.
Here's my quick and dirty fix which seems to work just fine:
index fd32527..0fa9976 100644
--- a/zabbix_cli/cli.py+++ b/zabbix_cli/cli.py@@ -7672,11 +7672,10 @@ class zabbixcli(cmd.Cmd):
try:
temp_dict = {}
- data = self.zapi.host.get(output=['hostid','name'],- monitored_hosts=True)+ data = self.zapi.host.get(output=['hostid','host'])
for host in data:
- temp_dict[host['hostid']] = host['name'] + temp_dict[host['hostid']] = host['host']
return temp_dict
```
The text was updated successfully, but these errors were encountered:
populate_hostid_cache uses the visible name of the host while everything else uses the real name.
It should also not exclude not monitored(disabled) host, otherwise define_host_monitoring_status is useless in bulk operations.
Here's my quick and dirty fix which seems to work just fine:
The text was updated successfully, but these errors were encountered: