Ad Widget

Collapse

Host list?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • syscont
    Junior Member
    • Jun 2024
    • 2

    #1

    Host list?

    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.
  • Ldzzzz
    Junior Member
    • Feb 2024
    • 14

    #2
    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

    • syscont
      Junior Member
      • Jun 2024
      • 2

      #3
      Thank you Ldzzzz, I will try your suggestion with API when I have some time, meanwhile I found an easy way on Zabbix 6 Inventory/Overview, filtered by group and voila

      Comment

      Working...