Ad Widget

Collapse

zabbix 1.1.2 Actions

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dantheman
    Senior Member
    • May 2006
    • 209

    #1

    zabbix 1.1.2 Actions

    After I upgraded to 1.1.2, I restarted one of our servers and the email alert I received did not populate the {HOSTNAME} variable in the email body. I also am using the variable {STATUS} and it worked properly, but I didn't get a value for the hostname, I know some work was done with the variables.. did hostname get changed?
    Last edited by dantheman; 12-09-2006, 17:01.
  • dantheman
    Senior Member
    • May 2006
    • 209

    #2
    I will be rolling back to 1.1.1 until this is figured out.. it creates a bit more work for us (well for me.. my boss starts asking what is going on when the emails don't say what is going on..) when we don't know which server is having the problem.

    Comment

    • dantheman
      Senior Member
      • May 2006
      • 209

      #3
      Does anybody else have this behavior with the new release?

      Comment

      • edeus
        Senior Member
        • Aug 2005
        • 120

        #4
        Your not the only one dan... I have the same prob.

        Its funny how even though it can be a minor thing, the "boss approval factor" always plays an important role.

        No offence to Alexei but these little things add up to an overall impression of the software. If there are no proper upgrade release notes, warnings, etc; the boss isnt going to approve a zabbix maintenance contract (which I personally would lobby for if zabbix had a better reputation in our company).

        Comment

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

          #5
          We just retested this functionality. Everything works perfectly on our test system.

          May I ask you to provide us with:

          - original message body
          - message body from the email
          - is there anything in ZABBIX server log file?
          Alexei Vladishev
          Creator of Zabbix, Product manager
          New York | Tokyo | Riga
          My Twitter

          Comment

          • den_crane
            Senior Member
            • Feb 2006
            • 272

            #6
            Originally posted by Alexei
            We just retested this functionality. Everything works perfectly on our test system.


            Action
            Subject {TRIGGER.NAME}: {STATUS}


            In version 111 {TRIGGER.NAME} содержащее в свою очередь {HOSTNAME} разворачивалось рекурсивно, в 112 только до первого уровня.

            С {HOSTNAME} используемом прямо в action все в порядке.

            Сорри фор рашион, лень.
            Last edited by den_crane; 13-09-2006, 10:43.

            Comment

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

              #7
              I do confirm that ZABBIX does not substitute {HOSTNAME} if it was part of {TRIGGER.NAME} and used in either message's subject or body. Standalone {HOSTNAME} works fine.

              Sorry for this.

              A fix will be available shortly.
              Alexei Vladishev
              Creator of Zabbix, Product manager
              New York | Tokyo | Riga
              My Twitter

              Comment

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

                #8
                Fixed src/zabbix_server/expression.c is attached. Recompile server and restart.
                Attached Files
                Alexei Vladishev
                Creator of Zabbix, Product manager
                New York | Tokyo | Riga
                My Twitter

                Comment

                • den_crane
                  Senior Member
                  • Feb 2006
                  • 272

                  #9
                  Originally posted by Alexei
                  Fixed src/zabbix_server/expression.c is attached. Recompile server and restart.
                  It's work. Thank you.

                  Comment

                  • mkaser
                    Junior Member
                    • Sep 2006
                    • 7

                    #10
                    How do I recompile the zabbix server with the expression.c

                    New at this thanks. I have copied the new file into the specified directory, what is the next step?

                    Comment

                    • peter_field
                      Member
                      • Jun 2006
                      • 71

                      #11
                      Recompile

                      First off, thanks for the quick fix Alexei.

                      mkaser, you can recomplile by:
                      1. put updated file into correct location in source
                      2. stop any running instances of zabbix_server, zabbix_agentd, etc.
                      3. from the root directory of the source run configure. I run:
                      #./configure --enable-server --enable-agent --with-mysql --with-net-snmp
                      however, you might need different switches if you use a different database, or dont need snmp, etc.
                      4. assuming that you don't get any errors, then run
                      #make install
                      5. Start zabbix_server, etc again

                      Hope that helps.

                      Comment

                      • hornos
                        Junior Member
                        • Sep 2006
                        • 12

                        #12
                        Still no luck applying the fix provided by Alexei

                        Comment

                        • dantheman
                          Senior Member
                          • May 2006
                          • 209

                          #13
                          No luck? It worked fine for me, what did you do and how do you know it's not working?

                          Comment

                          • RohrbaGe
                            Senior Member
                            • Aug 2005
                            • 167

                            #14
                            definetly the patch worked.
                            Ro

                            Comment

                            • peter_field
                              Member
                              • Jun 2006
                              • 71

                              #15
                              Post more detail hornos

                              Originally Posted by hornos
                              Still no luck applying the fix provided by Alexei
                              We need more detail if we are going to help you with your problem. Post some more information about the problem are you having.

                              Comment

                              Working...