Ad Widget

Collapse

timed based trigger

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • reallove
    Junior Member
    • Feb 2010
    • 14

    #1

    timed based trigger

    Hello,
    Can someone explain if it's possible to add a time condition to one trigger ?
    To be more precise, I want a certain trigger for one host only (not a global template trigger) NOT to be activated between a time period of the day.
    Thank you !
  • zabbix_zen
    Senior Member
    • Jul 2009
    • 426

    #2
    It's called 'Flexible intervals'

    For Zabbix agent Items you can specify intervals with an update periodicity delay.

    So, in your case, you'd need to set a Flexible interval for the period
    T1:t1-T2:t2
    with a delay of T2:t2 - T1:t1 seconds

    Comment

    • reallove
      Junior Member
      • Feb 2010
      • 14

      #3
      Thank you for the reply.
      I have created the following flexible interval for the item :
      25200 sec at 1-7,02:00-09:00
      Because I don't want alerts between 02 - 09 AM for that item. Apparently it didn't work, I still got alerts.
      Another question, Rich suggested on IRC to use macros for triggers.
      The macros section is so poor explained in the documentation ( how to use it, how to define it etc. ) and I am stuck.
      I created 2 macros for that host (from the host configuration) that looks like this :

      Code:
      {$LOADAFTER3AM} -> {server.hostname:system.cpu.load[,avg5].time(0)}>030000
      Code:
      {$LOADBEFORE2AM} -> {server.hostname:system.cpu.load[,avg5].time(0)}<020000
      I wanted to use them, as it is explained in the documentation, but I can't find a way to use them actually in the triggers.
      Can anyone enlighten me on this ?
      Thank you !

      Comment

      Working...