Ad Widget

Collapse

Remote Command Action run twice?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • lokutus25
    Junior Member
    • Oct 2010
    • 12

    #1

    Remote Command Action run twice?

    Sure I'm missing something. I need to create an action that run a remote script when a trigger is activated. So, I did some test. The action that I created, first send a jabber message and after a minute run a remote command (a fake script) on the monitored linux host.
    When the trigger is deactivated, the Action execute again both the "Action operations" i cerated, sending the "Ok" jabber message and re-executing the script after a minute.
    I can't figure out the way to run the remote command only when the trigger is activated.
    I'm using Zabbix 1.8.6 on a Ubuntu Server.
    Thanks for any suggestion!
  • lokutus25
    Junior Member
    • Oct 2010
    • 12

    #2
    Ok, I deleted the action and restarted the test from scratch. More simple.
    In the action everything is at default. No escalation, non recovery message. Just the Action Conditio pointing to the Host and the Trigger, and one Action operation that execute the remote command.
    When the trigger is fired up, the Remote Command is executed. When the trigger fires down, the Remote Command is executed again.
    Why the manual and the Wiki don't talk about this behaviour? If it's a bug, seems a big one.

    Comment

    • lokutus25
      Junior Member
      • Oct 2010
      • 12

      #3
      Really none noticed this behaviour? Or this happen only in my zabbix installation?
      I'm worried.

      Comment

      • Davidus
        Senior Member
        • Dec 2010
        • 281

        #4
        What do you have for action conditions?

        Comment

        • lokutus25
          Junior Member
          • Oct 2010
          • 12

          #5
          As action condition I have:
          Host=hostname
          AND
          Trigger=trigger-name

          The simplest I can think of. No Recovery Message, no Escalation.
          Thanks for any suggestion!

          Comment

          • lokutus25
            Junior Member
            • Oct 2010
            • 12

            #6
            Yes Yes! Thanks Davidus!
            You pointed me in the right direction
            I can add an Action Condition, with the "trigger value = problem" and so the Action works in only one direction. I knew I was missing something
            I'll do more test and then I'll mark this as SOLVED.
            Thanks again!

            Comment

            • lokutus25
              Junior Member
              • Oct 2010
              • 12

              #7
              [SOLVED] Default Remote Command Action run twice?

              The Action Condition "Trigger Value" did the trick. Thanks!

              Comment

              • Davidus
                Senior Member
                • Dec 2010
                • 281

                #8
                You are welcome

                Comment

                • Yello
                  Senior Member
                  • Apr 2011
                  • 309

                  #9
                  Originally posted by lokutus25
                  The Action Condition "Trigger Value" did the trick. Thanks!
                  Finally though, we need to confirm something important. Are you Borg?

                  Comment

                  • lokutus25
                    Junior Member
                    • Oct 2010
                    • 12

                    #10
                    Believe it or not, I'm reading your reply just now.
                    The answer is YES!! But only in my dreams...

                    Comment

                    Working...