Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

无法加载,报错KeyError: 'available' #18

Open
hyhxy0206 opened this issue Sep 10, 2024 · 0 comments
Open

无法加载,报错KeyError: 'available' #18

hyhxy0206 opened this issue Sep 10, 2024 · 0 comments

Comments

@hyhxy0206
Copy link

[root@locahost tmp]# zabbix_api dev_hosts_info
zabbix_manager:[1.4.04]
Python Library Documentation: method dev_hosts_info in module main

dev_hosts_info(self) method of main.zabbix_api instance

Traceback (most recent call last):
File "/usr/bin/zabbix_api", line 2636, in
function_result = cmd(*func_args, **kwargs)
File "/usr/bin/zabbix_api", line 326, in dev_hosts_info
host_list = self._hosts_get()
File "/usr/bin/zabbix_api", line 213, in _hosts_get
host_list = self.__host_get()
File "/usr/bin/zabbix_api", line 179, in __host_get
all_host_list.append((host['hostid'],host['host'],host['name'],host['interfaces'][0]["ip"],host["available"]))
KeyError: 'available'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant