Ad Widget

Collapse

Run a script on being added to template

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • reverson
    Junior Member
    • Jan 2015
    • 2

    #1

    Run a script on being added to template

    Has anyone been able to run a script once a host is linked to a template?

    I have a discovery rule that runs, and adds the host to a group, and links it to a template, and then I need to run a global script that will call some external APIs. The issue is, each different template has a different API endpoint, so I've put in in there as a macro. I would prefer to not have to write a separate script for each template, as I already have quite a few one off processes that need to be added to get a discovery rule up and running.

    Thanks,
    Robert
Working...