Ad Widget

Collapse

Change the expression of a trigger without changing the expression of the parent trig

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • GuardianRF
    Junior Member
    • Jun 2020
    • 10

    #1

    Change the expression of a trigger without changing the expression of the parent trig


    Good day to all. The question is how to change the expression of a trigger without changing the expression of the parent trigger? Example: there is a host, when trying to change its expression (for example, Zabbix agent on {HOST.NAME} is unreachable for 5 minutes) refers to the parent trigger. Accordingly, changing the parent trigger, it applies to all hosts, which is wrong for me. I see an option, copy the trigger and bind it to the host, and when it does not refer to the parent template, already change the expression of the trigger. Maybe there is some other, easier option?
    Last edited by GuardianRF; 17-06-2020, 16:11.
  • aib
    Senior Member
    • Jan 2014
    • 1615

    #2
    Standard way is to CLONE trigger on individual host, disable inherited trigger, and reconfigure cloned descendant expression.
    Sincerely yours,
    Aleksey

    Comment

    • GuardianRF
      Junior Member
      • Jun 2020
      • 10

      #3
      Originally posted by aib
      Standard way is to CLONE trigger on individual host, disable inherited trigger, and reconfigure cloned descendant expression.

      Thank! I suspected it, but I hoped there was another way. I will do it through cloning.

      Comment

      • Semiadmin
        Senior Member
        • Oct 2014
        • 1625

        #4
        You may use user macros in trigger expression and override them at the host level.

        Comment

        • GuardianRF
          Junior Member
          • Jun 2020
          • 10

          #5
          Good idea! Thanks!

          Comment

          Working...