Ad Widget

Collapse

trigger only between certains hours...

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • amazigh76
    Junior Member
    • Sep 2016
    • 12

    #1

    trigger only between certains hours...

    i trie to supervise a channel from my encoder server, but i want to supervise the channel between certain hours ( because channel is off Under and upper this time and i don't want to reach false alarms..)

    here the trigger i write but nothing change alarm are reaching any time and also between trigger time...
    i parse some logs in my log server and a script in the server reach alarm when raised appear in the log and clear it when cleared appears ( 10300 is the error alarm code and channel is the exact name of the channel to supervise because i have a lot of other channel )

    ({TRIGGER.VALUE}=0 and ({Template Encodeur:alarm_10300_[{#CHANNEL}].str(raised)}=1 and {Template Encodeur:alarm_10300_[{#CHANNEL}].str(channel)}=1 and {Template Encodeur :alarm_10300_[{#CHANNEL}].time()}>000001 and {Template Encodeur:alarm_10300_[{#CHANNEL}].time()}<163000)
    or
    ({Template Encodeur:alarm_10300_[{#CHANNEL}].str(raised)}=1 and {Template Encodeur:alarm_10300_[{#CHANNEL}].str(Channel)}=0))

    or
    ({TRIGGER.VALUE}=1 and {Template Encodeur :alarm_10300_[{#CHANNEL}].str(OK)}=0)

    so here i want to supervise and reach alarm only between 00h01 and 16h30...

    but it is not working ( i try also to put time (0) but no change.. )

    somebody can help me ?? is there a way to activate alarm between hours...is there something i wrote wrong?
    and sorry for my bad English thanks for your help )
  • aurelie
    Junior Member
    • Jan 2016
    • 16

    #2
    Hello,

    You should use the Custom intervals option in Item configuration.
    Custom interval doc

    If you don't get new polling you will not get new alarm.

    Comment

    • Miszel20
      Junior Member
      • Nov 2016
      • 1

      #3
      helped thanks

      Comment

      • amazigh76
        Junior Member
        • Sep 2016
        • 12

        #4
        thanks aurélie, but i can't use custom interval for my item, because i used "discovery mode" and custom interval doesn't appear in the item... and as you can see in my trigger i want to add hours restriction for one channel and not all my items which add restrictions in all channels with no exeption

        Comment

        • aurelie
          Junior Member
          • Jan 2016
          • 16

          #5
          Hello,

          When you talk about "discovery mode", are you talking about "discovery rules" and "item prototypes"?

          Comment

          • amazigh76
            Junior Member
            • Sep 2016
            • 12

            #6
            Originally posted by aurelie
            Hello,

            When you talk about "discovery mode", are you talking about "discovery rules" and "item prototypes"?
            yes aurelie discovery rules and item prototype

            Comment

            • aurelie
              Junior Member
              • Jan 2016
              • 16

              #7
              So you can use it, because Custom Interval is available in the Discovery rules and in the item prototype.

              Comment

              • nick0909
                Member
                • Apr 2013
                • 73

                #8
                I think it depends what version they are running, I believe custom intervals was added to discovery items in 3.0

                Comment

                • amazigh76
                  Junior Member
                  • Sep 2016
                  • 12

                  #9
                  yes not in the version Zabbix 2.4.3 (

                  Comment

                  Working...