Ad Widget

Collapse

Cross-Template Triggers or Item Output to Macro?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rockyglock
    Junior Member
    • Jun 2019
    • 1

    #1

    Cross-Template Triggers or Item Output to Macro?

    Not sure if this is possible or not.

    I have a template that covers a large group of servers.

    I have another template that covers a smaller subset of the larger group of servers.

    I want to set up a trigger for an alert on the smaller subset, but the items I'd be alerting on are all contained in the template that covers the larger group.
    https://redtube.onl/ https://beeg.onl/ https://spanktube.vip/spankbang/
    I don't want the trigger to go out to the full group, because it's only applicable on the small subset, and having to manually disable it on all other servers is a non-starter.

    There's no situation where the servers in this subset won't have the over-arching template applied to them, but I understand why the cross-template trigger limitation exists. Is there a workaround that anyone has found?

    An option I thought about was being able to output an item value to a Macro for the server, and then calling the macro on the trigger instead of trying to directly call the item. This only seems to be possible by using the Host Inventory, which feels a little too kluge-y. Is there a way to output an item to a custom Macro that anyone is aware of?

    Thanks in advance!
    Last edited by rockyglock; 04-06-2019, 16:15.
  • ramo27
    Junior Member
    • Apr 2020
    • 1

    #2
    Hi
    did you try with the linked templates ?
    Add the global template as a linked template of the subgroup template, you should be able to address all the items

    Trick: I think global template is not required anymore on the subgroup hosts, so you'll have to delete it from the subgroup hosts, be careful. Do it on a test host before
    R.

    Comment

    • Mortensen
      Junior Member
      • Jun 2020
      • 1

      #3
      An AWS Lambda function to perform the template processing. This Lambda function Walmart One accepts either a snippet or an entire template, and any additional parameters that you define. It returns the processed template snippet or the entire template as a response.
      Last edited by Mortensen; 04-06-2020, 16:58.

      Comment

      Working...