Ad Widget

Collapse

Prevent a global script to run when trigger is reseted

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • melpheos
    Member
    • Dec 2008
    • 64

    #1

    Prevent a global script to run when trigger is reseted

    Hi everyone,

    i am trying to prevent a script to run when a trigger is back to it's normal status.
    I borrowed a script that make a sip call when a trigger is in disaster status.
    Unfortunately, despite setting or not a recovery message, when the trigger is resolved i get another call a few minutes later.

    There is no options to set a recovery message when using global script and we can't use "even acknowledge" condition because the trigger might resolve itself.

    Any ideas ?
  • evertonco
    Member
    • Aug 2014
    • 75

    #2
    The only thing to do is uncheck "Recovery message" checkbox. Works for me.

    Maybe your action is not configured correctly.
    Last edited by evertonco; 16-11-2015, 23:21.

    Comment

    • melpheos
      Member
      • Dec 2008
      • 64

      #3
      Originally posted by evertonco
      The only thing to do is uncheck "Recovery message" checkbox. Works for me.

      Maybe your action is not configured correctly.
      Will try again

      Edit: actualy my last test wall already without recovery message and i still got a call when the trigger resolved
      Last edited by melpheos; 17-11-2015, 11:45.

      Comment

      • evertonco
        Member
        • Aug 2014
        • 75

        #4
        Show your action config

        Comment

        • melpheos
          Member
          • Dec 2008
          • 64

          #5
          There is really nothing special

          One action
          From 1 to 1
          Remote Command
          Host : Zabbix Server
          Global script : Call Test

          Conditions :

          Label Name Action
          (A) Trigger severity = "Disaster"
          (B) Trigger name like "00 Ping Check"
          (C) Host = "DSM-FAQ"

          Comment

          • ingus.vilnis
            Senior Member
            Zabbix Certified Trainer
            Zabbix Certified SpecialistZabbix Certified Professional
            • Mar 2014
            • 908

            #6
            Hi,

            You have to add another condition to your action.
            Code:
            (D)	Trigger value = "PROBLEM"
            Since you don't have it, Zabbix executes an action at both states.

            Best Regards,
            Ingus

            Comment

            • melpheos
              Member
              • Dec 2008
              • 64

              #7
              Originally posted by ingus.vilnis
              Hi,

              You have to add another condition to your action.
              Code:
              (D)	Trigger value = "PROBLEM"
              Since you don't have it, Zabbix executes an action at both states.

              Best Regards,
              Ingus
              I think you are quite right indeed.

              Comment

              Working...