Ad Widget

Collapse

Temporary disable triggers for a period in time

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Jarne St
    Member
    • Sep 2019
    • 63

    #1

    Temporary disable triggers for a period in time

    Hello

    I don't know if this functionality in available or not. But can I (as an end user) temporary disable a trigger. (so that I don't get notifications of this)
    If I disable a specific trigger, then after a period in time the trigger automatically enables back again.
    I have read this: https://blog.zabbix.com/a-workaround...d-maintenance/, but it doesn't explain if I can enable the trigger automatically back.
    Can I configure this in an action? I know that you can create a action for a trigger, but you can't disable a trigger in an action.

    Has anyone done this before?
    Thank you for any help!
  • Hamardaban
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • May 2019
    • 2713

    #2
    It is possible to use a time function in the trigger expression, which will prevent the trigger from being triggered at a certain time. And you can make a previously disabled trigger active from an external application using the API. This is not a standard feature.

    Comment

    • tim.mooney
      Senior Member
      • Dec 2012
      • 1427

      #3
      You can write your Actions so that one of the conditions is that the trigger is not in maintenance.

      The trigger will still fire, and the "problem" will be visible in the dashboard, but as long as your action includes the "not in maintenance", no alerts will be generated.

      Still, this may count against calculated service uptime, so it might not be quite what you want.

      Comment

      • Jarne St
        Member
        • Sep 2019
        • 63

        #4
        And how do I create an Action with trigger not in maintenance.

        Is that a condition? I only see the conditions: "Problem is suppresed", "Trigger", "Trigger Name" and "Trigger Severity" in an action but nothing with maintenance. (I use Zabbix version 4.0.13)
        If I choose "Problem is suppresed" I have to define a maintenance period for a Host.

        Comment

        • tim.mooney
          Senior Member
          • Dec 2012
          • 1427

          #5
          You're right: recent versions of Zabbix call it "Problem is not suppressed", instead of "host is not in maintenance". The "not in maintenance" was the older terminology that Zabbix 2.x and 3.x used.

          Yes, if you use this method, you must create a maintenance period for the host. If that's not suitable to your monitoring environment, then Hamardaban's advice is probably your best bet.

          Comment

          Working...