Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/lib/python
- from pyzabbix import ZabbixAPI
- lista = []
- zapi = ZabbixAPI(url='URL', user='USER', password='PASSWORD')
- hosts = zapi.host.get(output=['name','hostid'])
- for items in zapi.item.get(output=['name','hostid'],filter={'state':'1'}):
- for notsupported in hosts:
- if notsupported['hostid'] == items['hostid']:
- print notsupported['name'] + " " + items['name']
- continue
Add Comment
Please, Sign In to add comment