-
Incident report
-
Resolution: Won't fix
-
Trivial
-
None
-
4.0.2
-
None
I'm using API to list Monitored(Enabled) and not monitored hosts.
Listing count of enabled hosts works with:
hosts_en = zapi.host.get(monitored_hosts=1, output=["hostid", "name"]) print 'Monitored hosts: \t',len(hosts_en)
Cannot list count for disabled hosts:
hosts_dis = zapi.host.get(monitored_hosts=0, output=["hostid", "name"]) print 'Un Monitored hosts: \t',len(hosts_dis)
In the second case, it also reports the active host count.
Expected
while using flag 'monitored_hosts=0' it should report disabled hosts.