Ad Widget

Collapse

zabbix 1.6.1 fedora spec

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • tim4dev
    Junior Member
    • Nov 2008
    • 6

    #1

    zabbix 1.6.1 fedora spec

    Hi,

    See attach.

    Now rpmbuild a rpm-package can do so:
    Code:
    rpmbuild  -ba --define "build_mysql 1" zabbix.spec
    or
    rpmbuild  -bb --define "build_postgresql 1" zabbix.spec
    Result (as example):
    zabbix-mysql-1.6.1-1.fc9.i386.rpm (zabbix for mysql)
    zabbix-postgresql-1.6.1-1.fc9.i386.rpm (zabbix for pgsql)

    zabbix-1.6.1-1.fc9.src.rpm
    zabbix-agent-1.6.1-1.fc9.i386.rpm
    zabbix-debuginfo-1.6.1-1.fc9.i386.rpm
    zabbix-web-1.6.1-1.fc9.i386.rpm

    I build my rpm(s) from this zabbix.spec, and install it under Fedora 7 (i386, x86_64).
    And build rpm(s) for FC8, FC9 (mock).
    I also build and install a rpm-package with pre-zabbix-1.6.tar.gz dated 21 Nov.
    All is ok.

    Perhaps this spec will be useful for the Zabbix and Fedora-community.
    I think it can be used for RHEL/CentOS.
    Attached Files
  • Crazy Marty
    Member
    • Sep 2007
    • 75

    #2
    I -- and others -- have pleaded to have a working spec file included in Zabbix source for ages, to no avail. I believe it is because the developers use Ubuntu (debian-based), and may not have any familiarity with them.

    But, what the hell? I'll offer my second:

    Please include a working spec file to build proper RPMs in the zabbix source distribution. I, as a user, am required to run Zabbix on Enterprise class/quality machines and OSes (to monitor same): that means RHEL, or RHEL-derived distributions (think CentOS). Ubuntu is not Enterprise ready (in my humble opinion), but even if it is, I don't know of any responsible manager that would run a production commercial Internet service on Ubuntu.

    I have used the Fedora spec files in the past, as well as the current one for 1.6.1 (note that the Fedora-included patches fix an ugly bug related to CPU measurements in the Zabbix agents, as well!). Funny thing is: they just work -- even when I need to build RPMs for ancient releases. It would really be a great thing if the Zabbix folks & the Fedora folks would get together....

    Comment

    • tim4dev
      Junior Member
      • Nov 2008
      • 6

      #3
      I can say that in the new releases of RHEL / Fedora will be new spec files. Here is my correspondence on the subject:


      On Thu, Nov 20, 2008 at 1:26 PM, Yuri Timofeev <[email protected]> wrote:
      >
      > I found your zabbix.spec file
      > http://cvs.fedora.redhat.com/viewvc/...5/?root=extras
      >
      > and update to version 1.6.1
      > See attach.

      Zabbix in EL-5 will not be updated to 1.6.x because it's a major
      upgrade that requires manual intervention to update the database
      schema. Zabbix 1.6.x is available in Fedora 10 and will be available
      with EL-6.

      --
      Jeff Ollie

      Comment

      • bbrendon
        Senior Member
        • Sep 2005
        • 870

        #4
        What about proxy? Does this spec include that?
        Unofficial Zabbix Expert
        Blog, Corporate Site

        Comment

        • jsosic
          Member
          • Apr 2008
          • 47

          #5
          I have a spec file that builds all the possible combinations.

          zabbix-proxy-mysql
          zabbix-proxy-pgsql
          zabbix-proxy-sqlite
          zabbix-server-pgsql
          zabbix-server-mysql
          zabbix-server-sqlite

          I think I've got it from EPEL. Also, I can provide repositories with prebuilt versions if you would like (all combinations of EL4/EL5, x86_64/i386).

          Comment

          • otheus
            Member
            • Mar 2009
            • 53

            #6
            .spec file worked ... with some tweaks

            Great! Thanks for that spec file! There are some tweaks I'd like to point out...

            First, setup doesn't work if there is a PHP conf file provided, so maybe it's better to leave that out.

            Second, the database is created, but a database user is not created.

            I am still debugging certain aspects of this whole install process, and should I make any more improvemetns, I will post an updated version of this spec

            Comment

            Working...