Ad Widget

Collapse

How to turn off triggers for a specific period on Zabbix?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • zbxuser
    Junior Member
    • May 2019
    • 2

    #1

    How to turn off triggers for a specific period on Zabbix?

    I want to disable the Zabbix trigger only between 01:00 - 05:00. It should be enabled after 05:00 until 01:00 again.
    and time(...) > 050000 and time(...) < 010000 However, it doesn't seem to be working. I know about the Maintenance function on Zabbix, but that is not an option.
    What's wrong with above code or does anybody have a better idea?

  • brunohl
    Senior Member
    Zabbix Certified Specialist
    • Mar 2019
    • 215

    #2
    If your problem is receiving notifications on those periods, you can enable media types to only work during certain hours.

    I guess that your code is not working because it seems to me that the time returned is a string, therefore not parseable like a time in seconds, where you could use > and < (not sure about it though).

    Or, one option is to create an item to inform you the current time and use it on your trigger.

    Comment

    • zbxuser
      Junior Member
      • May 2019
      • 2

      #3
      Problem is solved,please check this : https://stackoverflow.com/a/56417195/11563595

      Comment

      • brunohl
        Senior Member
        Zabbix Certified Specialist
        • Mar 2019
        • 215

        #4
        Cool, didn't know that you could do this like that.

        Comment

        Working...