Ad Widget

Collapse

print only hosts in a particular host group?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rumpel1984
    Junior Member
    • Feb 2015
    • 7

    #1

    print only hosts in a particular host group?

    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!
Working...