q1x / zabbix-gnomes

Various scripts to automate tasks in Zabbix
Other
179 stars 94 forks source link

zgetinventory and --all-hosts not working #17

Open intrepidsilence opened 4 years ago

intrepidsilence commented 4 years ago

Do all of the hosts need to be in a specific host group for this to work? I get no results when using --all-hosts -A as the flags. I see that it is using the api to do a zapi.host.get() for the --all-hosts flag and when I user zapi.py interactviely and perform a "z host.get()" it works fine.

q1x commented 4 years ago

Hi, thanks for the report!

I've just tested against a Zabbix 3.0.28 instance and this seems to be working. What version of Zabbix are you using?

intrepidsilence commented 4 years ago

4.2.8 On Jan 13, 2020, 08:27 -0500, Raymond Kuiper notifications@github.com, wrote:

Hi, thanks for the report! I've just tested against a Zabbix 3.0.28 instance and this seems to be working. What version of Zabbix are you using? — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

intrepidsilence commented 4 years ago

Any updates on this?

st3rven commented 4 years ago

Hello, I using version 4.0.17, and in zgetinventory I don't see an option that allows bringing all groups in the same query. To clarify, I can make queries by group without problem, but I ask if it is possible to query all the hosts in the same query with the idea of generating a single file of all the computers in zabbix