Ad Widget

Collapse

Template triggers depend on host trigger ?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • pvdzwan
    Junior Member
    • Oct 2022
    • 9

    #1

    Template triggers depend on host trigger ?

    Hi,
    I have a situation where a template trigger fires when a host is not responding quickly enough. That means I get dozens of problems created when the server is slow.
    I tried to have that template trigger depend on a host trigger that checks the loadaverage on the server so they would not fire when load is too high.
    According to the docs ( for 6.0, as i am on 6.0.20) :
    • Trigger dependency may be added from a template trigger to a host trigger. In this case, linking such a template to a host will create a host trigger that depends on the same trigger template that the trigger was depending on. This allows to, for example, have a template where some triggers depend on the router (host) triggers. All hosts linked to this template will depend on that specific router.
    But when I try to add that dependence I can select the host and the trigger but when I click the update button I get an error:
    • Trigger "Foreman reports a problem for {HOST.NAME}" cannot depend on the trigger "Processor load is high on {HOST.NAME} ({ITEM.LASTVALUE})" from the host "dm-puppet-01", because dependencies on triggers from a child template or host are not allowed.
    Is the documentation wrong or do I not understand it correctly ?
Working...