Ad Widget

Collapse

Upgrade Zabbix 2.2

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • thomphi
    Member
    • Feb 2014
    • 74

    #46
    mysql>select * from dbversion;
    ERROR 1146: table "zabbix.dbversion' doesn't exist
    Last edited by thomphi; 24-02-2014, 12:12.

    Comment

    • pc99096
      Senior Member
      • Oct 2011
      • 193

      #47
      can you delete the whole database and create a new one? you will lose all settings, data, history etc.

      mysql> drop database zabbix;
      and then

      Comment

      • thomphi
        Member
        • Feb 2014
        • 74

        #48
        No I can't delete the database. My data are precious ��

        It's why I would like to upgrade. Otherwise I reinstall zabbix properly
        Last edited by thomphi; 24-02-2014, 12:22.

        Comment

        • pc99096
          Senior Member
          • Oct 2011
          • 193

          #49
          find / -name zabbix_server

          zabbix_server --version


          it is not a good idea to upgrade an appliance version

          Comment

          • steveboyson
            Senior Member
            • Jul 2013
            • 582

            #50
            The problem is that the zabbix guys do not provide the RPMs they use for the appliances builds. So, an "in place" upgrade of 2.0.x to 2.2.x appliance is a little bit complicated.

            There is a repo at
            Code:
            http://download.opensuse.org/repositories/server:/monitoring/openSUSE_12.3
            (12.3 is the base of the 2.0.x appliances) but there might be some caveats.

            You may want to start from your previously backed-up VM, add that repository and try an upgrade.

            Comment

            • steveboyson
              Senior Member
              • Jul 2013
              • 582

              #51
              For example, in difference to installs built from scratch, Opensuse packages have "-" and not "_" in the binary's names.

              so: instead of "zabbix_agentd" it is "zabbix-agentd", "zabbix_server" => "zabbix-server" and so on. Same for config files.

              Since you are on Suse already, this should not be a big problem, though.

              I would give the repo and the upgrade a try. Be sure to check your backups BEFORE the operation.

              Comment

              • thomphi
                Member
                • Feb 2014
                • 74

                #52
                Thank you man, I alreay try this.. (zypper update)
                Look :
                Last edited by thomphi; 24-02-2014, 12:39.

                Comment

                • thomphi
                  Member
                  • Feb 2014
                  • 74

                  #53
                  And zypper dup:

                  Comment

                  • steveboyson
                    Senior Member
                    • Jul 2013
                    • 582

                    #54
                    12.1 is the wrong repo. As I mentioned before, 2.0.x appliance builds are based on 12.3

                    Nevertheless, you may get the src.rpm and do a "rpmbuild --rebuild <name-of-source-rpm>.src.rpm" and see what is happening.

                    Have a look at /etc/SuSE-release. What is in there?
                    This is your base distribution to look for in the repos
                    Last edited by steveboyson; 24-02-2014, 13:38.

                    Comment

                    • thomphi
                      Member
                      • Feb 2014
                      • 74

                      #55
                      Ok, my repos :


                      EDIT: Oops I put the same repo twice

                      And /etc/Suse-release :


                      And I didn't understand your thing with "rpm" ..
                      Last edited by thomphi; 24-02-2014, 12:56.

                      Comment

                      • thomphi
                        Member
                        • Feb 2014
                        • 74

                        #56
                        It's very complicated to upgrade Zabbix in 2.2 with Opensuse. LOL

                        Comment

                        • pc99096
                          Senior Member
                          • Oct 2011
                          • 193

                          #57
                          "You can use this Appliance to evaluate Zabbix. The Appliance is not intended for serious production use at this time."

                          first question, why are you upgrading to 2.2 at all?

                          Comment

                          • thomphi
                            Member
                            • Feb 2014
                            • 74

                            #58
                            Because, I saw that Zabbix is 2.5x faster and other stuff interesting for me.

                            Comment

                            • steveboyson
                              Senior Member
                              • Jul 2013
                              • 582

                              #59
                              Ok, it seems that your base distro is 12.1
                              And: there is no "server_monitoring" repo for 12.1

                              So, your best bet is to build the RPMs from the source rpm as mentioned before.
                              get
                              Code:
                              http://download.opensuse.org/repositories/server:/monitoring/openSUSE_12.3/src/zabbix-2.2.2-1.1.src.rpm
                              and do a "rpmbuild --rebuild zabbix-2.2.2-1.1.src.rpm".

                              A different solution would be to get a 2.0.9 appliance (which is based on 12.3), export your 12.1 database (mysqldump), import it into the new 12.3 appliance and upgrade that one via the repos to 2.2.1
                              Last edited by steveboyson; 24-02-2014, 13:38.

                              Comment

                              • thomphi
                                Member
                                • Feb 2014
                                • 74

                                #60
                                http://download.opensuse.org/reposit....2-1.1.src.rpm : Repository is invalid

                                If I download Zabbix Appliance 2.2.2 (at the bottom), I just do export my database.sql (from Zabbix 2.0). is it possible? easy?

                                Comment

                                Working...