Jllin

zabbix获取所有的proxy
ZABBIX_SERVER = 'http://180.163.112.202:8611/zabbix' ZABB...
扫描右侧二维码阅读全文
14
2018/10

zabbix获取所有的proxy

ZABBIX_SERVER = 'http://180.163.112.202:8611/zabbix'
ZABBIX_USER = 'Admin'
ZABBIX_PWD = '12345^&*().com'
try:
zapi = ZabbixAPI(ZABBIX_SERVER)
zapi.login(ZABBIX_USER, ZABBIX_PWD)
except ZabbixAPIException as e:
print(e)

>>> for i in range(len(zapi.proxy.get())):
... print(zapi.proxy.get()[i]['host'])

Last modification:October 15th, 2018 at 01:53 pm
If you think my article is useful to you, please feel free to appreciate

Leave a Comment