Ad Widget

Collapse

Trigger true for spesific time frame before executing an action.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • christogouws
    Junior Member
    • Nov 2009
    • 20

    #1

    Trigger true for spesific time frame before executing an action.

    Is it possible to :

    A trigger must be true for 10mins before it will do an action,
    otherwise if its OK within that time frame, then no action
    will be performed.
  • alixen
    Senior Member
    • Apr 2006
    • 474

    #2
    Originally posted by christogouws
    Is it possible to :

    A trigger must be true for 10mins before it will do an action,
    otherwise if its OK within that time frame, then no action
    will be performed.
    Yes.

    You have 2 solutions:
    1. Define an action with escalation and configure action in a step that starts with a 10 mins delay.

    2. Modify your trigger definition so that it will become true only if its condtions are valid during 10 mins.

    Regards,
    Alixen
    http://www.alixen.fr/zabbix.html

    Comment

    • christogouws
      Junior Member
      • Nov 2009
      • 20

      #3
      Thanx

      Originally posted by alixen
      Yes.

      You have 2 solutions:
      1. Define an action with escalation and configure action in a step that starts with a 10 mins delay.

      2. Modify your trigger definition so that it will become true only if its condtions are valid during 10 mins.

      Regards,
      Alixen
      Solution 1 will still activate the action, but will just delay it,
      so it will still send out notification, but only after 10mins.

      Solution 2, sound like what I'm looking for, but how do I do that?

      How would I do it with a ping check for example?
      {Hostname:icmpping.last(0)}=0

      Comment

      • alixen
        Senior Member
        • Apr 2006
        • 474

        #4
        Originally posted by christogouws
        How would I do it with a ping check for example?
        {Hostname:icmpping.last(0)}=0
        {Hostname:icmpping.max(600)}=0

        Maximum value is 0 during the last 600 seconds.

        Regards,
        Alixen
        http://www.alixen.fr/zabbix.html

        Comment

        • akarim
          Member
          • Aug 2008
          • 33

          #5
          Don't work.

          Just put a Action ...

          Code:
          Event: Trigger
          Enable escalations: x
          Period (seconds) 900
          Defaul subject..{TRIGGER.NAME}: {STATUS}
          Status: enable
          
          Actions conditions...
          Trigger descriptio like "unreachable" AND time period
          Stop on firewall communication between Agent (active) y Server.

          On 10 seconds SMS for announce {TRIGGER.NAME}: {STATUS}

          Comment

          • bashman
            Senior Member
            • Dec 2009
            • 432

            #6
            I want to delay an action for 5 minutes, if during this period trigger becomes false, don't run the remote command, but if trigger remains true, run the remote command.

            Is there a way to do it?
            978 Hosts / 16.901 Items / 8.703 Triggers / 44 usr / 90,59 nvps / v1.8.15

            Comment

            • bashman
              Senior Member
              • Dec 2009
              • 432

              #7
              Originally posted by christogouws
              Solution 1 will still activate the action, but will just delay it,
              so it will still send out notification, but only after 10mins.
              I think you could use escalations, I understand that escalations check if the trigger is still true (PROBLEM) in each step, so If triggers becomes false (OK) before 10 minutes (before the step that runs the remote command) the action will be aborted and no command will be executed.
              978 Hosts / 16.901 Items / 8.703 Triggers / 44 usr / 90,59 nvps / v1.8.15

              Comment

              Working...