Having issues with this pyzabbix api query (2.4.4)
I am trying to print only hosts in a particular host group but no matter what I put in the filter, it returns all hosts even if they are not in a particular groupid.
Any idea how to do this?
for i in zapi.host.get({'output': 'extend',
'filter':
{'groupids': [7]}
}):
print i
Thanks!
I am trying to print only hosts in a particular host group but no matter what I put in the filter, it returns all hosts even if they are not in a particular groupid.
Any idea how to do this?
for i in zapi.host.get({'output': 'extend',
'filter':
{'groupids': [7]}
}):
print i
Thanks!