Ad Widget

Collapse

Zabbix 2.0.5 packages for Debian/Ubuntu

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jbfavre
    Junior Member
    • May 2011
    • 11

    #1

    Zabbix 2.0.5 packages for Debian/Ubuntu

    Hello,
    I'm very proud to announce the availibility of Zabbix 2.0.5 packages for Ubuntu 10.04 Lucid & Ubuntu 12.04 Precise.
    I've been working on it since early 2.x release.

    Packages can be found at:

    Code:
    deb http://packages.tooptee.org/ lucid experimental
    for Lucid

    Code:
    deb http://packages.tooptee.org/ precise experimental
    for Precise

    Repository is signed with my own key: 35C2E2F1
    Code:
    wget http://packages.tooptee.org/pubkey.gpg -O - | sudo apt-key add -
    Even if the repo is called "experimental", I use zabbix-server, zabbix-proxy & zabbix-agent with my own packages at work, since 1.8.10 (sort of "eat you own dog food" thing )

    Packaging debian directory will be available on github within next hours.

    I'm also pleased to announce Zabbix 2.0.5 for Debian 6.0 "Squeeze" on behalf Guillaume Plessis from Dotdeb project (http://www.dotdeb.org/2013/02/12/zabbix-2-0-5/).

    Packages can be found at:
    Code:
    deb http://packages.dotdeb.org squeeze all
    You're welcome to test and report bugs in github issue page:
    Code:
    https://github.com/jbfavre/tooptee-zabbix/issues
    for Ubuntu version

    Code:
    https://github.com/gplessis/dotdeb-zabbix/issues
    for Debian version

    Regards,
    Jean Baptiste Favre
    Guillaume Plessis
    Last edited by jbfavre; 25-02-2013, 14:02.
  • georgew
    Member
    • Mar 2008
    • 50

    #2
    Thanks for the packages

    I'm installing from the packages you provided now, so thanks for that! It should save me a lot of time.

    I did notice what looks like an error during installation on a 64 bit 12.0.4 Ubuntu server system. This was a fresh install with only the ssh server installed. I like to start with nothing installed, so that the application pulls in all of the dependencies, rather than start with what may be a sub-optimal starting point.

    I'm not an apt expert, I've only been using it for 5 years or so installing hundreds of lamp stack based web application servers of various types (such as Zabbix), and never needed to dig too deep in it as I usually install default versions (and update them by hand later if needed). But I was wary of crossing a major version boundry (1.x to 2.x).

    After adding your server to my config, and pulling in the keys for it, my first pass at installation ended up with a broken 1.8 installation... That probably had nothing to do with you or your packaging. It was broken in a strange way, but I'll not go into that. (The last default version of zabbix server I installed with apt-get was complete and working).

    I stopped debugging when I realized I didn't have 2.0.5. I formatted the drive and started over at this point. I dug around a bit on how to force apt to get the experimental version, and decided I didn't have time, so I just downloaded the packages to install them with dpkg -i ./zab...
    Normally when I use dpkg, I expect dependency errors which I clean up with an "apt-get -fy install".

    However when I started with the zabbix-server package, dpkg failed to successfully run with an error accessing a file:
    /var/lib/dpkg/tmp.ci/config: 3: .: Can't open /usr/share/dbconfig-common/dpkg/config.mysql

    Mysql and dbconfig-common were not installed of course... I expected to see a dependancy error, rather than a failure with dpkg. I installed mysql and dbconfig packages with apt-get, then everything started working as expected.

    Is there an error in the dependencies in the packaging? I expected mysql (and other) dependency errors, but I didn't get that far. Obviously I worked around it, so this is a bug report rather than a request for help.

    I'm still pulling packages in for the front-end, so I can't report on how cleanly that goes... I'll post later for that.

    Update: Success! After installing the server and front end packages, I was able to pull up the web page and log in. I got a bunch of errors from Date() and some PHP setting errors... But those are just standard things I need to go set, so I expect those. Thanks for your 2.0.5 packages!
    Last edited by georgew; 20-02-2013, 20:34.

    Comment

    • jbfavre
      Junior Member
      • May 2011
      • 11

      #3
      Hello Georgew,
      Thanks for you report. Please find my answers inline

      Originally posted by georgew
      After adding your server to my config, and pulling in the keys for it, my first pass at installation ended up with a broken 1.8 installation... That probably had nothing to do with you or your packaging. It was broken in a strange way, but I'll not go into that. (The last default version of zabbix server I installed with apt-get was complete and working).
      Oh I see. My Zabbix packages come with version 2.0.5 when Ubuntu ones have 1:1.8.

      Actually, 1:1.8 is considered as greater than 2.0 as you can check with:
      Code:
      # dpkg --compare-versions 2.0 gt 1:1.8
      # echo $?
      1
      With means that statement "2.0 is greater than 1:1.8" is false.

      That's a current limitation of my build farm. I'm working on it, but do not have a definitive solution for now.

      What I can suggest in the meantime is to use apt_preferences likas follow:
      Code:
      # cat /etc/apt/preferences.d/01-zabbix.pref 
      Package: zabbix-agent zabbix-server-mysql zabbix-proxy-mysql zabbix-frontend-php
      Pin: version 2.0*
      Pin-Priority: 990
      Assuming you want to use zabbix-server with mysql backend.
      To not forget to run apt-get update.

      This will ensure version 2.0* version of Zabbix and will force 1:1.8 skip.

      Please note you can always check which version is about to be installed with following command:
      - Without apt preference file:
      Code:
      # apt-cache policy zabbix-server-mysql
      zabbix-server-mysql:
        Installed: (none)
        Candidate: 1:1.8.11-1
        Version table:
           1:1.8.11-1 0
              500 http://archive.ubuntu.com/ubuntu/ precise/universe amd64 Packages
           2.0.5-3~tooptee12+1 0
              500 file:/mnt/repository/www/ precise/experimental amd64 Packages
      - With apt preferences file:
      Code:
      # # apt-cache policy zabbix-server-mysql
      zabbix-server-mysql:
        Installed: (none)
        Candidate: 2.0.5-3~tooptee12+1
        Package pin: 2.0.5-3~tooptee12+1
        Version table:
           1:1.8.11-1 501
              500 http://archive.ubuntu.com/ubuntu/ precise/universe amd64 Packages
           2.0.5-3~tooptee12+1 501
              200 file:/mnt/repository/www/ precise/experimental amd64 Packages
      Originally posted by georgew
      I stopped debugging when I realized I didn't have 2.0.5. I formatted the drive and started over at this point. I dug around a bit on how to force apt to get the experimental version, and decided I didn't have time, so I just downloaded the packages to install them with dpkg -i ./zab...
      Normally when I use dpkg, I expect dependency errors which I clean up with an "apt-get -fy install".

      However when I started with the zabbix-server package, dpkg failed to successfully run with an error accessing a file:
      /var/lib/dpkg/tmp.ci/config: 3: .: Can't open /usr/share/dbconfig-common/dpkg/config.mysql

      Mysql and dbconfig-common were not installed of course... I expected to see a dependancy error, rather than a failure with dpkg. I installed mysql and dbconfig packages with apt-get, then everything started working as expected.
      dpkg does not deal with automatic dependencies installation.
      Therefore, you'll have to install all of them *before* installing .deb packages.

      Originally posted by georgew
      Update: Success! After installing the server and front end packages, I was able to pull up the web page and log in. I got a bunch of errors from Date() and some PHP setting errors... But those are just standard things I need to go set, so I expect those. Thanks for your 2.0.5 packages!
      Not sure about Date() errors, but with recent PHP you must set
      Code:
      date.timezone
      into php.ini (/etc/php5/apache2/php.ini if you use PHP as an Apache module, /etc/php5/fpm/php.ini if you use PHP-FPM)

      Regards,
      Jean Baptiste

      Comment

      • georgew
        Member
        • Mar 2008
        • 50

        #4
        Thanks!

        Thanks for the information on apt preferences, that was a bit more concise and useful than the general info I was finding in my web searches.

        As for dpkg, yeah I know it doesn't resolve the dependencies, but it does set things up so that running "apt-get -fy install" will successfully resolve the dependencies and complete the installation. That procedure worked for all of the packages except the server package. dpkg failed to process that package because of a missing file rather than a missing dependency. Once mysql and friends were installed, dpkg was able to process the server package so that "apt-get -fy install" was able to resolve the dependancies and leave the package in a working state.

        I think if I had started with a base OS install that included LAMP, I would have probably not noticed this issue.

        In any event, thanks for all of your work!!

        Comment

        • jbfavre
          Junior Member
          • May 2011
          • 11

          #5
          Hello,
          Juste released new packages ('1:2.0.5-4~tooptee12+1') using epoch so that there won't be any precedence issue on Ubuntu

          Comment

          • hshicx
            Junior Member
            • Feb 2013
            • 1

            #6
            APT Repository Key

            Hi,

            Thanks for sharing these packages. I am just wondering, is there a key for the Ubuntu repository?

            Thanks,
            Hs

            Comment

            • jbfavre
              Junior Member
              • May 2011
              • 11

              #7
              Originally posted by hshicx
              Hi,

              Thanks for sharing these packages. I am just wondering, is there a key for the Ubuntu repository?

              Thanks,
              Hs
              Hello,
              Thanks for pointing that out. Yes, there is a key:
              Code:
              wget http://packages.tooptee.org/pubkey.gpg -O - | sudo apt-key add -
              I've updated first post.
              Regards,
              Jean Baptiste

              Comment

              • ZABBIXRESEARCH
                Junior Member
                • Feb 2013
                • 1

                #8
                Installation with this sources FAIL

                Hi,

                installation with this repo FAILS:

                Code:
                 zabbix-server-sqlite3
                E: Sub-process /usr/bin/dpkg returned an error code (1)
                A package failed to install.  Trying to recover:
                Setting up zabbix-server-sqlite3 (1:2.0.5-4~tooptee12+1) ...
                chown: cannot access `/var/lib/zabbix': No such file or directory
                dpkg: error processing zabbix-server-sqlite3 (--configure):
                 subprocess installed post-installation script returned error exit status 1
                Errors were encountered while processing:
                 zabbix-server-sqlite3
                seems like a directory is missing.

                Did you testthese packages before you released them or are WE testing them?

                Please do not release packages, if you do not knwo what you are doing, thanks.

                Comment

                • Treq
                  Junior Member
                  • Feb 2013
                  • 1

                  #9
                  Get error when installing the server-sqlite version

                  Hi,

                  I get an error when I install on Ubuntu 12.04.2.
                  I chose "Yes" when prompted to automatically set up the SQLite database.

                  Kind regards,
                  Treq

                  Code:
                  root@Odin:~# apt-get install zabbix-server-sqlite3
                  Reading package lists... Done
                  Building dependency tree
                  Reading state information... Done
                  The following extra packages will be installed:
                    dbconfig-common libiksemel3 libopenipmi0 libssh2-1
                  Suggested packages:
                    virtual-mysql-client mysql-client postgresql-client zabbix-frontend-php
                  The following NEW packages will be installed:
                    dbconfig-common libiksemel3 libopenipmi0 libssh2-1 zabbix-server-sqlite3
                  0 upgraded, 5 newly installed, 0 to remove and 0 not upgraded.
                  Need to get 2690 kB of archives.
                  After this operation, 7731 kB of additional disk space will be used.
                  Do you want to continue [Y/n]? Y
                  Get:1 http://archive.ubuntu.com/ubuntu/ precise/universe libiksemel3 i386 1.2-4build1 [27.4 kB]
                  Get:2 http://archive.ubuntu.com/ubuntu/ precise/main libopenipmi0 i386 2.0.18-0ubuntu3 [496 kB]
                  Get:3 http://packages.tooptee.org/ precise/experimental zabbix-server-sqlite3 i386 1:2.0.5-4~tooptee12+1 [1635 kB]
                  Get:4 http://archive.ubuntu.com/ubuntu/ precise/universe libssh2-1 i386 1.2.8-2 [74.0 kB]
                  Get:5 http://archive.ubuntu.com/ubuntu/ precise/main dbconfig-common all 1.8.47 [458 kB]
                  Fetched 2690 kB in 0s (2724 kB/s)
                  Preconfiguring packages ...
                  Selecting previously unselected package libiksemel3.
                  (Reading database ... 33879 files and directories currently installed.)
                  Unpacking libiksemel3 (from .../libiksemel3_1.2-4build1_i386.deb) ...
                  Selecting previously unselected package libopenipmi0.
                  Unpacking libopenipmi0 (from .../libopenipmi0_2.0.18-0ubuntu3_i386.deb) ...
                  Selecting previously unselected package libssh2-1.
                  Unpacking libssh2-1 (from .../libssh2-1_1.2.8-2_i386.deb) ...
                  Selecting previously unselected package dbconfig-common.
                  Unpacking dbconfig-common (from .../dbconfig-common_1.8.47_all.deb) ...
                  Selecting previously unselected package zabbix-server-sqlite3.
                  Unpacking zabbix-server-sqlite3 (from .../zabbix-server-sqlite3_1%3a2.0.5-4~tooptee12+1_i386.deb) ...
                  Processing triggers for man-db ...
                  Setting up libiksemel3 (1.2-4build1) ...
                  Setting up libopenipmi0 (2.0.18-0ubuntu3) ...
                  Setting up libssh2-1 (1.2.8-2) ...
                  Setting up dbconfig-common (1.8.47) ...
                  
                  Creating config file /etc/dbconfig-common/config with new version
                  Setting up zabbix-server-sqlite3 (1:2.0.5-4~tooptee12+1) ...
                  chown: cannot access `/var/lib/zabbix': No such file or directory
                  dpkg: error processing zabbix-server-sqlite3 (--configure):
                   subprocess installed post-installation script returned error exit status 1
                  Processing triggers for libc-bin ...
                  ldconfig deferred processing now taking place
                  Errors were encountered while processing:
                   zabbix-server-sqlite3
                  E: Sub-process /usr/bin/dpkg returned an error code (1)
                  root@Odin:~#

                  Comment

                  • Marki555
                    Junior Member
                    • Mar 2013
                    • 1

                    #10
                    Debian Squeeze

                    Zabbix 2.0.5 packages for Debian Squeeze are also available via the Dotdeb repository - www.dotdeb.org . Many sites use Dotdeb for PHP, MySQL, Nginx, etc in production. I also didn't have any issues with them.

                    Comment

                    • chopeta
                      Junior Member
                      • Feb 2013
                      • 5

                      #11
                      I am using ZabbixZone repo.



                      Packages are available for CentOS 5, CentOS 6 and Debian 6 (Squeeze).

                      Comment

                      • zalex_ua
                        Senior Member
                        Zabbix Certified Trainer
                        Zabbix Certified SpecialistZabbix Certified Professional
                        • Oct 2009
                        • 1286

                        #12
                        It worth to mention official packages https://www.zabbix.com/documentation..._from_packages

                        The Zabbix Zone is actually a community mirror of the official Zabbix repo.
                        Last edited by zalex_ua; 18-03-2013, 23:06.

                        Comment

                        • zalex_ua
                          Senior Member
                          Zabbix Certified Trainer
                          Zabbix Certified SpecialistZabbix Certified Professional
                          • Oct 2009
                          • 1286

                          #13
                          And just in case - there is EPEL repo as well http://blog.zabbix.com/zabbix-2-0-pa...entos-sl/1893/

                          Comment

                          • iazabbix
                            Junior Member
                            • Mar 2013
                            • 2

                            #14
                            postgres - packages and default startup

                            @Jean

                            Good work. For zabbix-mysql-server and zabbix-frontend-php, things are working fine for me.

                            I am not sure if you are doing it absolutely correct as upon installing zabbix-frontend-php the postgres packages are listed as mandatory dependencies and it even fires up postgres by default even if you choose mysql.

                            Upon installation of zabbix-server-mysql the installation is smooth but mysql is not set for default start.

                            Let me know if you need any further information to correct the above.

                            Cheers,
                            Shrenik

                            Comment

                            • iazabbix
                              Junior Member
                              • Mar 2013
                              • 2

                              #15
                              Originally posted by zalex_ua
                              It worth to mention official packages https://www.zabbix.com/documentation..._from_packages

                              The Zabbix Zone is actually a community mirror of the official Zabbix repo.
                              But as of now it lacks the Ubuntu 12.04 packages for 2.0.5 . Please correct me if I am wrong. Hence I am currently using the packages available in the top post.

                              Comment

                              Working...