Ad Widget

Collapse

Disable trigger in a particular time

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • tom_tucker
    Junior Member
    • Jan 2011
    • 6

    #1

    Disable trigger in a particular time

    Hi,
    I found how to disable a trigger in a particular time, but it doesn't work for me.

    My trigger:
    Code:
    Processor load is too high on {HOSTNAME}
    
    {MyLinux:system.cpu.load[,avg1].last(0)}>6 & {MyLinux:system.cpu.load[,avg1].time(0)}>060000 & {MyLinux:system.cpu.load[,avg1].time(0)}<235900
    I want to disable the trigger from midnight to 6am.

    Any help would be appreciated.

    Tom
  • thiagolmelo
    Junior Member
    Zabbix Certified Trainer
    Zabbix Certified Specialist
    • Dec 2009
    • 27

    #2
    Try set trigger like that

    {MyLinux:system.cpu.load[,avg1].last(0)}>6&{MyLinux:system.cpu.load[,avg1].time(0)}>060000

    let me know why are you using {MyLinux:system.cpu.load[,avg1].time(0)}<235900 + it {MyLinux:system.cpu.load[,avg1].time(0)}>060000


    Best Regards
    __________________
    --
    Thiago Melo
    [url]www.zabbix.com.br[/url]
    [url]www.uniredeinfo.com.br[/url]
    Porto Alegre - RS - Brasil

    Comment

    • tom_tucker
      Junior Member
      • Jan 2011
      • 6

      #3
      Thanks, now it works.

      I saw the example in the zabbix documentation and I though there have to be a time range from-to.

      Cheers
      Tom

      Comment

      • tiagobaptista
        Junior Member
        • Jul 2015
        • 2

        #4
        Hello Thiago, where is the rule what tell about the time from/to ? I also need to use this feature for my triggers and i don't know where is the rule.

        I also did my trigger the same way the Tom did, according the zabbix documentation, see bellow:

        {xxx_Template OS Windows:system.cpu.load[,avg1].last(0)}>5&({xxx_Template OS Windows:system.cpu.load[,avg1].time(0)}<200000|{xxx_Template OS Windows:system.cpu.load[,avg1].time(0)}>040000)

        I need to disable this trigger from eight P.M to two A.M.

        Thank You, best regards.

        Comment

        • troffasky
          Senior Member
          • Jul 2008
          • 567

          #5
          At some point the trigger syntax changed so that instead of '&' you need to use ' and ' in the expression. When googling various phrases, most of the results on the forum are in the old format. The error message of course does not give any hints about this!

          Comment

          Working...