Ad Widget

Collapse

Dynamic generation of host macros

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mfitzy
    Junior Member
    • Jun 2016
    • 4

    #1

    Dynamic generation of host macros

    I'm currently setting up agent auto registration for my environment, and it is working really well.

    Each of my hosts have several macros that differ from host to host.

    Is there a way/method of generating host macros based on the contents of the zabbix_agent.conf or through auto registration (somehow based on metadata)?
  • Linwood
    Senior Member
    • Dec 2013
    • 398

    #2
    External routines, such as check or discovery, can use the API to create macros if that helps, and from the API they have access to all other data already populated in the host or related records (and at least in theory to the config files directly).

    That's indirect. If you want the registration to cause it, you could kick off an action based on that event which called a script and used the API to do the same thing.

    Comment

    Working...