Ad Widget

Collapse

1.3.2 RPM's for RedHat Boxen

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • clahti
    Senior Member
    • Jan 2007
    • 126

    #1

    1.3.2 RPM's for RedHat Boxen

    If anyone is interested I have rolled the following RPMs

    Source RPM
    zabbix-1.3.2-1.src.rpm
    Built from modified upstream SPEC file of Fedora Core 7 Devel zabbix-1.1.4

    Fedora Core 6 (32bit, 2.6 Kernel)
    zabbix-1.3.2-5.i386.rpm
    zabbix-agent-1.3.2-5.i386.rpm
    zabbix-web-1.3.2-5.i386.rpm
    Build from above source RPM on stock install

    CentOS 4.4 (32bit, 2.6 Kernel)
    zabbix-1.3.2-5.i386.rpm
    zabbix-agent-1.3.2-5.i386.rpm
    zabbix-web-1.3.2-5.i386.rpm
    Build from above source RPM on stock install

    CentOS 3.8 (32bit, 2.4 Kernel)
    zabbix-agent-1.3.2-5.i386.rpm
    Build from above source RPM on modified setup, there is a dependency that at least mysql 4x headers are present to compile the RPMs. I had to temporarily bastardize my box with upstream mysql RPMs from Fedora Core 4 to get this to compile, but the resulting zabbix-agent seems to work just fine, I would not install the server piece here though

    Is there anywhere I can post these for other interested RH users?
  • clubbing80s
    Senior Member
    • Sep 2005
    • 109

    #2
    Hi
    yes I would be interesed in the rpms ...

    Comment

    • Siegfried
      Junior Member
      • Jul 2005
      • 24

      #3
      If it's just for hosting and you don't find anything else more official, let me know and I could set something up.

      Comment

      • clahti
        Senior Member
        • Jan 2007
        • 126

        #4
        Originally posted by Siegfried
        If it's just for hosting and you don't find anything else more official, let me know and I could set something up.
        Let me know if you want me to post them somewhere (ftp?). I do not have the facilities to host at the moment so if you can I would be happy to provide

        Comment

        • Siegfried
          Junior Member
          • Jul 2005
          • 24

          #5
          Check PM

          Comment

          • clahti
            Senior Member
            • Jan 2007
            • 126

            #6
            Siegfried has the RPMs and should be making these available soon, your mileage may vary so don't blame me if your server starts smoking after installing the RPMs

            Comment

            • Siegfried
              Junior Member
              • Jul 2005
              • 24

              #7
              Here they are:



              Thanks for providing the SRPMs too!

              Comment

              • clahti
                Senior Member
                • Jan 2007
                • 126

                #8
                Originally posted by Siegfried
                Here they are:



                Thanks for providing the SRPMs too!
                I discovered a problem with the rc.d script that starts the server, rather annoying but easy to fix. I will re-roll the RPMs with the fixed init script but here it is in the meantime:

                Code:
                #! /bin/sh
                #
                # chkconfig: - 85 15
                # description: zabbix server daemon
                #
                
                # zabbix details
                ZABBIX=/usr/bin/zabbix_server
                CONF=/etc/zabbix/zabbix_server.conf
                PIDFILE=/var/run/zabbix/zabbix.pid
                
                # Source function library.
                . /etc/rc.d/init.d/functions
                
                # Source networking configuration.
                . /etc/sysconfig/network
                
                # Check that networking is up.
                [ ${NETWORKING} = "no" ] && exit 0
                
                [ -x $ZABBIX ] || exit 0
                [ -e $CONF ] || exit 0
                
                RETVAL=0
                
                case "$1" in
                    start)
                        echo -n "Starting zabbix server: "
                        daemon $ZABBIX -c $CONF
                        RETVAL=$?
                        echo
                        [ $RETVAL -eq 0 ] && touch /var/lock/subsys/zabbix
                        ;;
                    stop)
                        echo -n "Shutting down zabbix server: "
                        killproc zabbix_server
                        RETVAL=$?
                        echo
                        [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/zabbix && rm -f /var/run/zabbix/zabbix.pid
                        ;;
                    restart|reload)
                        $0 stop
                        $0 start
                        RETVAL=$?
                        ;;
                    status)
                        status zabbix_server
                        RETVAL=$?
                        ;;
                    *)
                	echo "Usage: $0 {start|stop|restart|reload|status}"
                	exit 1
                	;;
                esac
                
                exit $RETVAL

                Comment

                • clubbing80s
                  Senior Member
                  • Sep 2005
                  • 109

                  #9
                  Thanks for building the rpms.
                  What ./configure options did you use ?
                  could you advise on how i could do it with fc 6 64 bit ..

                  Many Thanks
                  Greg

                  Comment

                  • clahti
                    Senior Member
                    • Jan 2007
                    • 126

                    #10
                    here is the configure directive in the spec file:

                    %configure \
                    --enable-server \
                    --enable-agent \
                    --with-%{zdb} \
                    --with-net-snmp \
                    --with-ldap \
                    --disable-static

                    You should be able to download the zabbix-1.3.2-1.fc6.src.rpm to /tmp and rebuild 64bit binaries with the following command

                    <shell:> rpmbuild --rebuild /tmp/zabbix-1.3.2-1.fc6.src.rpm


                    There are some dependencies you will need to install first:

                    yum install mysql-devel, net-snmp-devel, openldap-devel, gnutls-devel

                    Your RPMs should appear in /usr/src/redhat/RPMS/i386/*

                    Comment

                    Working...