Ad Widget

Collapse

Make a trigger not activate during a specific timeframe

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • vaelfonia
    Junior Member
    • Sep 2024
    • 2

    #1

    Make a trigger not activate during a specific timeframe

    Hiya, newbie to Zabbix here - I've got a server that runs a backup every day at 4am, but it keeps triggering the high CPU usage trigger and sending an alert, which I don't want as it's expected.

    I would not like to disable this trigger completely as it's still very useful at other times of the day, but I don't want the channel it's being fed into having an alert every day for something that's not important.

    Is there way to do this?

    The expression for the trigger currently looks like this:
    Code:
    min(/HOST/system.cpu.util,5m)>{$CPU.UTIL.CRIT}
    Thanks!
  • cyber
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Dec 2006
    • 4806

    #2
    add to your trigger...
    Code:
    ... and (time()<040000 or time()>060000)
    that shoudl prevent it from activating from 4-6AM

    Comment

    • vaelfonia
      Junior Member
      • Sep 2024
      • 2

      #3
      Originally posted by cyber
      add to your trigger...
      Code:
      ... and (time()<040000 or time()>060000)
      that shoudl prevent it from activating from 4-6AM
      Thanks, I'll give it a go.

      Comment

      Working...