Hello all! I'm a beginner in Zabbix running Zabbix 6.0 and I have a task to find some tens of hosts from a list of hundreds which are part of the same group. I wanted to show all the hosts after filter by group but I didn't find any option to get all hosts in one page and copy them in bash to use a script, is it there an option like this ? Or even better to get a text list somehow ? Any suggestion is welcome.
Ad Widget
Collapse
Host list?
Collapse
X
-
Hi, to get the list of hosts in a specific group you can go to Configuration (Data collection on 7.0 LTS) > Hosts and filter with your host groups, after that you can select the hosts you want and export them in YAML, XML, or JSON.
You can also use the Zabbix API to make a request that will return the hosts you want.
If you're not familiar with the API, you can find documentation on the Internet or use ChatGPT to make the request !
Comment