Ad Widget

Collapse

is it possible to let a trigger triggering on certain days?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Speedfight
    Member
    • May 2007
    • 67

    #1

    is it possible to let a trigger triggering on certain days?

    Hi

    Our backups run on Monday until Friday. When a job is comleted succesfully it sends a signal to zabbix with zabbix_sender that the job is completed.
    Also I set that if zabbix didn't receive a signal within 25 hours the trigger needs to be triggerd so that i receive a message that somehting is wrong.

    But the problem is, the backups don't run in the weekend so after 25 hours the trigger is triggerd.

    Is it possible that the trigger only triggers on certain days? If yes, how can i do that?

    Thanks in advance
  • Tractorboy
    Member
    • Oct 2010
    • 98

    #2
    day of Week

    When you build the trigger there is a dayof week function.

    Investigate this option to stop triggers firing.


    If this does not work then look at similar within the actions to stop your being altered.

    Comment

    • Speedfight
      Member
      • May 2007
      • 67

      #3
      Thanks.

      Will this work?

      Code:
      
      {DBServer:1BackupCheck.last(0)}>0 | {DBServer:1BackupCheck.nodata(25h)}=1 & {DBServer:1BackupCheck.dayofweek(0)}=1-5

      Comment

      • Speedfight
        Member
        • May 2007
        • 67

        #4
        unfortanatly the

        Code:
         {DBServer:1BackupCheck.dayofweek(0)}=1-5
        part doesn't work.

        if I set
        Code:
         {DBServer:1BackupCheck.dayofweek(0)}=1-5
        to

        Code:
         {DBServer:1BackupCheck.dayofweek(0)}=1
        
        or 
        
        {DBServer:1BackupCheck.dayofweek(0)}<6
        It works. so 1-5 doesn't work. Is that a bug?

        Comment

        Working...