Ad Widget

Collapse

Upgrading 1.6.2. to 1.6.4

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • JulianMummery
    Junior Member
    • Apr 2009
    • 4

    #1

    Upgrading 1.6.2. to 1.6.4

    Hi,

    I have spent about one hour reading the PDF Manual and am very dissapointed at how vague the upgrade instructions are.

    I have spent days getting ZABBIX to work perfectly with monitoring works servers and I do not want to risk messing an upgrade up when it is a bit of a guessing game.

    Can anyone point me in the right direction to some specific upgrade instructions. Also these instructions should be put as as STICKY thread or at least included into the documentation as I am sure that lots of people ask the same thing again and again.
  • MrKen
    Senior Member
    • Oct 2008
    • 652

    #2
    I upgraded from 1.6.2 to 1.6.4 last week. It took about 5 minutes from start to finish.

    [You should dump your db first just in case - that will add an extra 15/20 minutes to the process. Or just rely on last nights dump/backup. You will only need to import your dumped db if something goes terribly wrong.]

    1. Make a temporary directory to store your configs, binaries and phps.

    2. In the following, your paths may be different:
    Copy configs from /etc/zabbix to your temp
    Copy binaries from /usr/local/zabbix/sbin to your temp
    Copy phps from /var/www/html/zabbix to your temp

    3. Stop Zabbix Server and Mysql

    4. Install using the same ./config that you originally used. For example:

    [root@zabbix ~]# tar -xzvf zabbix-1.6.4.tar.gz
    [root@zabbix ~]# cd zabbix-1.6.4
    [root@zabbix ~]# ./configure --enable-server --prefix=/usr/local/zabbix --with-mysql --with-net-snmp --with-jabber=/usr --with-libcurl=/usr/bin/curl-config
    [root@zabbix ~]# make install
    [root@zabbix ~]# make clean

    5. Start Mysql and add the 3 lines specified in the release notes.

    6. Start Zabbix Server.

    Piece of cake

    MrKen
    Disclaimer: All of the above is pure speculation.

    Comment

    • Jocelyn
      Junior Member
      • Feb 2009
      • 15

      #3
      Hi,
      I've followed your instructions exept concerning the ./config (I used the basic one : ./configure --enable-server --with-mysql --with-net-snmp --with-libcurl )

      But when I check on my zabbix server, nothing has changed. I'm still in 1.6.2 version. Do you have any idea of why?

      Comment

      • MrKen
        Senior Member
        • Oct 2008
        • 652

        #4
        Are you sure you're still on 1.6.2?

        On my GUI every page still says 1.6.1

        But at the command line ./zabbix_server -V
        ZABBIX Server (daemon) v1.6.4 (3 April 2009)
        Compilation time: Apr 9 2009 08:49:59

        MrKen
        Disclaimer: All of the above is pure speculation.

        Comment

        • Jocelyn
          Junior Member
          • Feb 2009
          • 15

          #5
          At least, I'm sure that the php changes hasn't been done since I still have to click on monitoring to the the subparts.

          and for the ./zabbix_server -V , in which directory are you?

          Comment

          • MrKen
            Senior Member
            • Oct 2008
            • 652

            #6
            Originally posted by Jocelyn
            and for the ./zabbix_server -V , in which directory are you?
            I'm in /usr/local/zabbix/sbin (where the binaries are).
            Disclaimer: All of the above is pure speculation.

            Comment

            • Jocelyn
              Junior Member
              • Feb 2009
              • 15

              #7
              ok, I'm running the good version but do you know, how to upgrade the web part (I mean seeing 1.6.4 and getting the improvements of navigation etc)?

              Comment

              • MrKen
                Senior Member
                • Oct 2008
                • 652

                #8
                I didn't know, but I just found it and now my frontend says 1.6.4

                edit /var/www/html/zabbix/include/defines.inc.php you will see it right near the top "define('ZABBIX_VERSION','1.6.4');"
                then I restarted zabbix.

                re: improvements of navigation, I.m not quite sure what you're referring to. Sorry.

                MrKen
                Disclaimer: All of the above is pure speculation.

                Comment

                • Jocelyn
                  Junior Member
                  • Feb 2009
                  • 15

                  #9
                  Sorry,
                  I was refering to the tabs. Before (for version previous to 1.6.3), if you wanted from Administration > Users to Monitoring > Dashboard, You had first to click on Monitoring and then to click on Dashboard. But in the last version, you don't need to click on monitoring anymore. You just have to put your mouse on Monitoring and then choose the subpart you're looking for.
                  I hope you understand what I mean.
                  Anyway, thanks for your help

                  Comment

                  • swaterhouse
                    Senior Member
                    • Apr 2006
                    • 268

                    #10
                    Originally posted by MrKen
                    edit /var/www/html/zabbix/include/defines.inc.php you will see it right near the top "define('ZABBIX_VERSION','1.6.4');"

                    That is NOT how you upgrade the front end. The instructions given in the second post are adequate to update the zabbix_server service but you also need to update the php files for the frontend. try the following command (you may have to edit for your paths)

                    Code:
                    cp -Rf --reply=yes frontends/php/* /var/www/html/zabbix

                    Comment

                    • Jocelyn
                      Junior Member
                      • Feb 2009
                      • 15

                      #11
                      Code:
                      cp -Rf --reply=yes frontends/php/* /var/www/html/zabbix
                      Thanks a lot, it's ok now.

                      Another question I have is about Dashboard: in System status part, one of my host group has more than 30 problems but it seems that the dashboard can't display a number superior to 30. Do you know if there is a way to fix it? I mean to get the real number of problem (if there are 45 problems of severity High, I would like to see 45 and not 30).
                      Last edited by Jocelyn; 21-04-2009, 15:36.

                      Comment

                      • MrKen
                        Senior Member
                        • Oct 2008
                        • 652

                        #12
                        Originally posted by swaterhouse
                        That is NOT how you upgrade the front end. The instructions given in the second post are adequate to update the zabbix_server service but you also need to update the php files for the frontend. try the following command (you may have to edit for your paths)

                        Code:
                        cp -Rf --reply=yes frontends/php/* /var/www/html/zabbix
                        How stupid am I? [don't answer that!]

                        Thanks very much swaterhouse, I stand corrected. All this time I've been upgrading the zabbix-server service but still running the old frontend.

                        MrKen
                        Disclaimer: All of the above is pure speculation.

                        Comment

                        • chivo
                          Junior Member
                          • Mar 2009
                          • 11

                          #13
                          After upgrade issues with the dashboard

                          Hello,

                          I upgraded from 1.6.2 to 1.6.4. I grabbed the source and built RPMs, upgrading the server and web interface on their respective servers. One problem I had was that I had to up the memory_limit setting in the php.ini from 16M. I set it to 24M and it seems to be working, but perhaps a note should be made in the release notes with the appropriate value.


                          Thanks

                          Comment

                          • Jocelyn
                            Junior Member
                            • Feb 2009
                            • 15

                            #14
                            Originally posted by chivo

                            I upgraded from 1.6.2 to 1.6.4. I grabbed the source and built RPMs, upgrading the server and web interface on their respective servers. One problem I had was that I had to up the memory_limit setting in the php.ini from 16M. I set it to 24M and it seems to be working, but perhaps a note should be made in the release notes with the appropriate value.
                            I got the same issue but it depends on what you do and not of the version. I'm note sure but I think that the memory_limit already existed before 1.6.4. Thus, there would not have any use to add this in the release notes.

                            Comment

                            • Jeffj
                              Junior Member
                              • Apr 2007
                              • 21

                              #15
                              Just wanted to say thanks to MrKen and swaterhouse. With your post here I was able to upgrade from 1.6.1 to 1.6.4 in about 10 min. Being a windows guy some times this stuff take me a while but with your help here it was a brezze.

                              If they could ever get the manual up to speed for people like me I think Zabbix would really take off.

                              Jeff

                              Comment

                              Working...