Ad Widget

Collapse

Auto assigning Host Group/Templates based on agent metadata?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • olegus
    Member
    • Dec 2023
    • 68

    #1

    Auto assigning Host Group/Templates based on agent metadata?

    I'm new to zabbix.
    I wonder if it is a way to pass a host group from an agent to automatically assign a host to a group?
    Here is my use case:
    - we need to monitor about 50 different products with , in some cases, huge amount of hosts (~1000), which can be of different origin (OS, purpose, version etc) and we need to find a way to separate them somehow in groups. The ideal way would be to have tags , but looks like we can only have Host group in Zabbix. And the straight forward "zabbix" way to achieve that would be to create product host groups on server and create autoregistration actions for each group.
    - I am trying to avoid "hardcode" groups and create so many different actions for onboarding
    - I am looking for a way to assign Host group (and may be templates) during autoregistration based on a value found in agent metadata dynamically. It will save us a lot of efforts to pre-configure actions
    - So if I need to on-board 100 hosts for a new product A, 50 from each are Windows and 50 are Linux , all I need is to send different agent .env to host owners.

    I heard that it is possible through scripts and API, I wonder if someone has done​ this before
    Last edited by olegus; 26-12-2023, 23:08.
Working...