Ad Widget

Collapse

Problem with 1.4-SVN and 1.4.1-SVN

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bking
    Junior Member
    • Jun 2007
    • 7

    #1

    Problem with 1.4-SVN and 1.4.1-SVN

    I'm having a problem with the latest SVN versions of Zabbix. I had the 1.4 release working all except for getting duplicate messages when it emailed me. Upgrading to SVN fixed the duplicate messages but it broke the whole system. What happens now is that every bit of checked data is the opposite of what it should be. For instance I had some fpings setup in 1.4 that were reporting in the Overview and Map screens properly. Emails, although in duplicate, were correctly sending. After upgrading to svn I checked the graph and it shows the item there correctly but not in overview or maps or triggers. I tested for state change when the item was removed, and it did that ok. Most of zabbix-agent items are also backwards. I think something broke in SVN or I am not compiling right.

    I'm using CentOS 5.0 on a 32bit machine with 1gb ram.

    Can somebody help me?

    Here is my build script: The only thing I am not entirely sure about is the dbsync.h. I had to pull that from another zabbix 1.4 archive because it wasn't available in the svn download.

    ##Start File: get141
    #!/bin/tcsh -f

    set NAME=zabbix
    set VER=1.4.1
    #set SVNDIR=1.4.1svn
    set TARGZ=$NAME-$VER.tar.gz
    set old_dir = `pwd`

    nano zabbix.spec

    svn co svn://svn.zabbix.com/branches/1.4.1
    mv $VER "$NAME-$VER"

    cd "$NAME-$VER"

    if ( ! -f include/dbsync.h ) then
    cp ../dbsync.h include
    endif

    aclocal -I m4
    autoconf
    autoheader
    automake -a
    automake

    cd old_dir
    tar cvfz "$TARGZ" "$NAME-$VER"
    rm -rf "$NAME-$VER"
    ./make_zabbix
    ##End File: get141

    ##Start File: make_zabbix
    #!/bin/tcsh -f

    set TARGZ=zabbix-1.4.1.tar.gz
    set RSPEC=zabbix.spec
    set F1=zabbix-agent.init
    set F2=zabbix-logrotate.in
    set F3=zabbix-server.init
    set F4=zabbix-web.conf

    cp "$TARGZ" /usr/src/redhat/SOURCES
    cp "$F1" /usr/src/redhat/SOURCES
    cp "$F2" /usr/src/redhat/SOURCES
    cp "$F3" /usr/src/redhat/SOURCES
    cp "$F4" /usr/src/redhat/SOURCES
    cp "$RSPEC" /usr/src/redhat/SPECS

    set old_dir = `pwd`
    cd /usr/src/redhat/SPECS
    rpmbuild -ba --clean --rmsource `basename $RSPEC`

    mv /usr/src/redhat/RPMS/i386/zabb* /usr/src/redhat/SRPMS/zabb* $old_dir
    rm /usr/src/redhat/SPECS/`basename $RSPEC`
    ##End File: make_zabbix

    If these scripts get mangled they are also at http://blog.timberlinedealerships.co...for-centos-50/
  • bking
    Junior Member
    • Jun 2007
    • 7

    #2
    I figured it out. Now you have to run make dist in the process. I didn't find this in INSTALL or in the zabbix.pdf. Copying dbsync.h from an earlier tar.gz will screw up your zabbix. Todays svn compile worked and I now show mostly green instead of mostly red.

    Updated notes on how to compile Zabbix src.rpm's are found at the link above.
    Last edited by bking; 29-06-2007, 18:38.

    Comment

    Working...