Ad Widget

Collapse

Upgrade Zabbix 2.2

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

    #16
    Ok. I will test this
    Last edited by thomphi; 21-02-2014, 17:03.

    Comment

    • thomphi
      Member
      • Feb 2014
      • 74

      #17
      I repeat my procedure, tell me if I'm wrong :

      Code:
      tar -zxvf zabbix-2.2.0.tar.gz
      Code:
      ./configure --enable-server --enable-agent --with-mysql --enable-ipv6 --with-net-snmp --with-libcurl --with-libxml2
      Code:
      make install
      Code:
      mkdir /srv/www/htdocs/zabbix
      cd frontends/php
      cp -a . /srv/www/htdocs/zabbix
      That's it. And the interface still in 2.0

      Comment

      • pc99096
        Senior Member
        • Oct 2011
        • 193

        #18
        why don't you try my commands?

        don't you see there is one "mv" command which is really important?

        Comment

        • pc99096
          Senior Member
          • Oct 2011
          • 193

          #19
          Originally posted by thomphi
          Code:
          mkdir /srv/www/htdocs/zabbix
          cd frontends/php
          cp -a . /srv/www/htdocs/zabbix
          That's it. And the interface still in 2.0
          i am pretty sure
          mkdir /srv/www/htdocs/zabbix
          returned something like "directory already exists"

          Comment

          • thomphi
            Member
            • Feb 2014
            • 74

            #20
            I made a copy of my "vm" before the "installation"
            now, srv / www / htdocs is empty and I didn't change /usr/share/zabbix
            I did exactly your command except (rm -rf /usr/share/zabbix
            mv /usr/share/zabbix.old /usr/share/zabbix) and my procedure after.

            ./configure is GOOD (at the end it tell me run "make install")
            make install is good with no error
            I create directory zabbix
            copy the files from frontend/php

            I'm completely lost beaucause when I tap http://<server_ip_or_name>/zabbix it's directly the dashboard

            Anyway, I thank you for your patience and support !!!!!!!!
            Last edited by thomphi; 21-02-2014, 17:32.

            Comment

            • pc99096
              Senior Member
              • Oct 2011
              • 193

              #21
              search for httpd.conf, open it
              find line "DocumentRoot" and check what it says
              do a "ls -l" for that path (is it /srv/www/htdocs?)

              Comment

              • thomphi
                Member
                • Feb 2014
                • 74

                #22
                I check DocumentRoot in /usr/share/doc/packages/apache2/original/httpd.conf
                And is it /srv/www/htdocs !!

                Comment

                • pc99096
                  Senior Member
                  • Oct 2011
                  • 193

                  #23
                  and you are saying you had a running zabbix 2.0 and there was nothing in /srv/www/htdocs
                  ?

                  Comment

                  • thomphi
                    Member
                    • Feb 2014
                    • 74

                    #24
                    Exactly !! (before when I create the directory zabbix)
                    Last edited by thomphi; 21-02-2014, 17:56.

                    Comment

                    • thomphi
                      Member
                      • Feb 2014
                      • 74

                      #25
                      Now, There is /zabbix with the contents of /fontend/php

                      Maybe I do reboot vmware ?

                      Comment

                      • pc99096
                        Senior Member
                        • Oct 2011
                        • 193

                        #26
                        i am sure you are doing something wrong
                        if you copy the contents of 2.2 frontend/php into a CLEAN zabbix directory, you can't have 2.0 screen

                        reboot is definitely not going to help

                        Comment

                        • aib
                          Senior Member
                          • Jan 2014
                          • 1615

                          #27
                          thomphi, let's do some investigation.
                          (all my examples are from real productive Zabbix Server under CentOS)

                          1) check what service you use - httpd? nginx?
                          Code:
                          [B]# netstat -anp | grep ":80"[/B]
                          ....
                          tcp        0      0 0.0.0.0:80                  0.0.0.0:*                   LISTEN      1867/httpd
                          ....
                          2) then check configuration of httpd for the directory of Zabbix frontend

                          Code:
                          [B]# grep -i -r zabbix /etc/httpd/conf*[/B]
                          
                          /etc/httpd/conf.d/zabbix.conf:# Zabbix monitoring system php web frontend
                          /etc/httpd/conf.d/zabbix.conf:Alias /zabbix /usr/share/zabbix
                          Now you know where is the root directory for Zabbix frontend

                          3) CHeck the Zabbix Version

                          Code:
                          [B]# grep -r "VERSION" include/defines.inc.php[/B]
                          define('ZABBIX_VERSION',     '2.2.2');
                          define('ZABBIX_API_VERSION', '2.2.2');
                          define('ZABBIX_DB_VERSION',      2020000);
                          Could you post your results of this investigation process?
                          Sincerely yours,
                          Aleksey

                          Comment

                          • steveboyson
                            Senior Member
                            • Jul 2013
                            • 582

                            #28
                            The current version of the frontend is defined in /usr/share/zabbix/include/defines.inc.php as

                            Code:
                            define('ZABBIX_VERSION',     '2.2.2');
                            If you still have "2.0" displayed you have definetely the old frontend files in place.

                            Comment

                            • thomphi
                              Member
                              • Feb 2014
                              • 74

                              #29
                              Hi Aib & steveboyson,

                              1) Httpd, like you.

                              2) grep -i -r zabbix /etc/httpd/conf* : No such file or directory

                              3) grep -r "VERSION" include/defines.inc.php (in /usr/share/zabbix)
                              define('ZABBIX_VERSION', '2.0.0');
                              define('ZABBIX_API_VERSION', '1.4 ');

                              grep -r "VERSION" include/defines.inc.php (in /srv/www/htdocs/zabbix)
                              define('ZABBIX_VERSION', '2.2.2');
                              define('ZABBIX_API_VERSION', '2.2.2');

                              thank's !

                              Comment

                              • thomphi
                                Member
                                • Feb 2014
                                • 74

                                #30
                                If I put frontend/php in /usr/share/zabbix, it's the interface 2.2 but in :
                                3. Configure DB connection :
                                "The fronted does not match Zabbix database"

                                Comment

                                Working...