Ad Widget

Collapse

Host Condition in Actions configuration

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Valerie
    Junior Member
    • Jan 2006
    • 28

    #1

    Host Condition in Actions configuration

    Hi,
    I am pretty sure there is a bug with the Host="somehost" condition when setting an action to be taken uppon a trigger.
    has anyone investigated a solution?
  • elkor
    Senior Member
    • Jul 2005
    • 299

    #2
    it works for me, I did uncover a potential problem with action conditions though detailed in another post in this forum.

    Comment

    • Valerie
      Junior Member
      • Jan 2006
      • 28

      #3
      Hi Elkor,
      Yeah I read your post on the other thread, right after submitting mine.

      From what i understood, I should use host groups combined with host for action configuration?

      Comment

      • elkor
        Senior Member
        • Jul 2005
        • 299

        #4
        I have an action defined with only Host= on it. it's working when the trigger state changes.

        my issue was more complex and had to do with host groups in the conditions and the host in question not belonging to any groups.

        in short (too late, I know ) an action with simply Host=yourhost should work (provided yourhost has items and triggers).

        Comment

        • Valerie
          Junior Member
          • Jan 2006
          • 28

          #5
          Here is the test I've made

          Set an action with conditions:
          Trigger Value = On
          Host = "Antia"

          Then I made it so a trigger would be raised for system "Wd2013993".
          And I received an email anyways, from the action mentionned above.

          I've made several other tests, and ended with conclusion that Host = "somehost" is not a working condition.

          Comment

          • elkor
            Senior Member
            • Jul 2005
            • 299

            #6
            You're right.

            I just did a test and recieved 2 alerts when I should have only recieved 1.

            something odd is going on here and it could have a big impact on a rollout schedule unless it can be corrected easily.

            Alexei, any way we can have somebody take a look at this?

            Comment

            • Alexei
              Founder, CEO
              Zabbix Certified Trainer
              Zabbix Certified SpecialistZabbix Certified Professional
              • Sep 2004
              • 5654

              #7
              Hi all,

              The issue will be re-tested and, if needed, fixed today.

              I'll keep you informed.
              Alexei Vladishev
              Creator of Zabbix, Product manager
              New York | Tokyo | Riga
              My Twitter

              Comment

              • elkor
                Senior Member
                • Jul 2005
                • 299

                #8
                Thanks Alexei!

                Comment

                • Valerie
                  Junior Member
                  • Jan 2006
                  • 28

                  #9
                  Correction?

                  Hi,

                  Has an answer/correction to this problem been found?

                  Thanks
                  Last edited by Valerie; 10-04-2006, 20:32.

                  Comment

                  • Alexei
                    Founder, CEO
                    Zabbix Certified Trainer
                    Zabbix Certified SpecialistZabbix Certified Professional
                    • Sep 2004
                    • 5654

                    #10
                    The problem has been fixed. CVS updated.

                    Here is the fix, file zabbix/src/zabbix_server/actions.c:

                    else if(condition->conditiontype == CONDITION_TYPE_HOST)
                    {
                    ret = FAIL;


                    Add the "ret = FAIL;" to make it work.
                    Alexei Vladishev
                    Creator of Zabbix, Product manager
                    New York | Tokyo | Riga
                    My Twitter

                    Comment

                    • elkor
                      Senior Member
                      • Jul 2005
                      • 299

                      #11
                      Thanks! I'll test and recompile now.

                      err... recompile then test ;-)

                      Comment

                      • elkor
                        Senior Member
                        • Jul 2005
                        • 299

                        #12
                        OK, that seemed to work. (although I did not see the change in the sourceforge public CVS)

                        it doesn't address the issue detailed here though. However, hat is relatively minor compared to this and it can be worked around.

                        do you want me to submit the other bug on sourceforge? or have you fixed it already as you were in this module..

                        Comment

                        • Valerie
                          Junior Member
                          • Jan 2006
                          • 28

                          #13
                          Yup this solved my problem
                          Thanks a lot Alexei

                          Comment

                          Working...