Ad Widget

Collapse

Recovery messages can't be customized ?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Kai-Kai
    Senior Member
    • Apr 2009
    • 142

    #1

    Recovery messages can't be customized ?

    Hello,
    I think I've found a small bug in the soft.

    I want to use actions to send me an email when there's a problem on one host I monitore. I add a new action, I configure it and I choose "recovery message".

    I've decided to modify the text of recovery message to be different from the problem message.

    For example, for problem message :
    "Probleme on {HOSTNAME} - {TRIGGER.NAME} : {STATUS}"

    And in recovery message :
    "No more probleme on {HOSTNAME} - {TRIGGER.NAME} : {STATUS}"

    Then I made a problem matching the action to test...

    I well received the first mail :
    "Probleme on testmachine - ping : PROBLEM"

    Then I corrected the problem, and I well received the recovery message... BUT (because there's a but ^^), the message is :
    "Probleme on testmachine - ping : OK"
    instead of being :
    "No more probleme on testmachine - ping : OK"

    Is it a bug in the soft ?
    If it's, do you know If I can correct it myself ?

    Thanks in advance, and sorry for my english, I hope I can be understood.
    Last edited by Kai-Kai; 20-05-2009, 10:50. Reason: Problem solved.
  • alixen
    Senior Member
    • Apr 2006
    • 474

    #2
    Hi,

    Make sure that you have an "Action conditions" with:
    Trigger value = "PROBLEM"

    Hope this helps

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

    Comment

    • Kai-Kai
      Senior Member
      • Apr 2009
      • 142

      #3
      Hello, thanks for your answer.

      I think you haven't understood my problem.
      The messages are well sent, the problem is Zabbix doesn't use the specific template for the recovery message. It uses the same message for alert and for recovery message whereas I've specified a different one.
      Last edited by Kai-Kai; 19-05-2009, 15:28.

      Comment

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

        #4
        I do not think we have any issue or a bug here. The functionality is well-tested and widely used. Please double-check you configuration.
        Alexei Vladishev
        Creator of Zabbix, Product manager
        New York | Tokyo | Riga
        My Twitter

        Comment

        • Kai-Kai
          Senior Member
          • Apr 2009
          • 142

          #5
          Hello, thanks for your answer too Alexei.

          Yes it's possible the problem is my configuration, but I don't see where it can be...
          So a few pictures to illustrate the problem :


          The action configuration :




          The dashboard showing there's a problem :




          The first mail, alerting :

          Comment

          • Kai-Kai
            Senior Member
            • Apr 2009
            • 142

            #6
            The dashboard after I solved the problem :



            The second mail, informing problem is solved :




            If you read the text of the two mails : it's the same. The status is good, but not the text. If you loock at my configuration, the 2 texts are different... that's what I don't understand.

            Thanks in advance.

            Comment

            • sbarnett
              Member
              • Mar 2009
              • 35

              #7
              I too have the same problem.

              Comment

              • nmail_uk
                Member
                • May 2009
                • 65

                #8
                Same for me - see the following separate thread (I too thought it was my configuration)



                @fcge - if you now disable the recovery message, the next time you get an alert do you get the recovery message instead of the normal one?

                Comment

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

                  #9
                  Why do you think it was a recovery message?!

                  Your conditions does not contain Trigger value=Problem condition (it was suggested earlier), it means that emails are generated for any events (problems and ok).

                  Add new condition Trigger value=Problem in order to "fix" it.
                  Alexei Vladishev
                  Creator of Zabbix, Product manager
                  New York | Tokyo | Riga
                  My Twitter

                  Comment

                  • Kai-Kai
                    Senior Member
                    • Apr 2009
                    • 142

                    #10
                    Mmmmm ok.
                    What made me think it was the recovery message was the status was "OK"... but in fact I think I've misunderstood the way this feature runs... and misunderstood the answer of alixen.

                    Could you explain the way it should be configured to obtain :
                    * a message A when a problem occures
                    * a message B when the same problem come back to the normal
                    ?


                    @nmail : sorry, i haven't seen your message before. If I had seen it, I would have post in your topic instead of making a new one... I'll test disabling the recovery message.

                    Comment

                    • Kai-Kai
                      Senior Member
                      • Apr 2009
                      • 142

                      #11
                      Ok, so what we should do is just to add the condition on the trigger status : PROBLEM.
                      And all works fine.

                      What was surprising is zabbix doesn't send any recovery messages in the first configuration. But I think it's a "protection" to avoid sending too much email.

                      So sbarnett just try to add the condition given by alixen and Alexei. And it should work fine.

                      Thanks again to alexei and all the team for producing such a nice soft as a free one.

                      Comment

                      • nmail_uk
                        Member
                        • May 2009
                        • 65

                        #12
                        @alexei: so are you saying we should have one action for a problem (including the condition trigger status = PROBLEM) and one action for a recovery (including the condition trigger status = OK)?

                        In that case what's the point in the "recovery template" option, because you'd just make the "message template" different between the two actions.

                        Totally confused

                        Comment

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

                          #13
                          Originally posted by nmail_uk
                          @alexei: so are you saying we should have one action for a problem (including the condition trigger status = PROBLEM) and one action for a recovery (including the condition trigger status = OK)?
                          You have two options here:

                          1. Use action with trigger status = PROBLEM and recovery message enabled.
                          2. Use two separate actions: trigger status = PROBLEM and trigger status = OK with no recovery messages (i.e. the option Recovery message is not set).
                          Alexei Vladishev
                          Creator of Zabbix, Product manager
                          New York | Tokyo | Riga
                          My Twitter

                          Comment

                          • nmail_uk
                            Member
                            • May 2009
                            • 65

                            #14
                            Ah OK, that clears things up, I'll try that.

                            It's not at all clear in the documentation though, the fact you've got a separate recovery message option makes it more confusing - you're effectively saying "only send an e-mail on a PROBLEM notification, but if it's a recovery notification use this message."

                            Perhaps the action should have a default condition of trigger status = PROBLEM?

                            Thanks for a great product anyway, I'm really impressed

                            Comment

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

                              #15
                              Originally posted by nmail_uk
                              It's not at all clear in the documentation though, the fact you've got a separate recovery message option makes it more confusing - you're effectively saying "only send an e-mail on a PROBLEM notification, but if it's a recovery notification use this message."
                              Well, not quite. Zabbix sends notifications based on notification conditions, not status of trigger. Think about it!

                              Zabbix sends recovery message only if "normal" message was already sent and (it is very important!) notification condition is evaluated as false. In the example above it does not happen because all events will match the conditions.
                              Originally posted by nmail_uk
                              Perhaps the action should have a default condition of trigger status = PROBLEM?
                              We are considering this!
                              Alexei Vladishev
                              Creator of Zabbix, Product manager
                              New York | Tokyo | Riga
                              My Twitter

                              Comment

                              Working...