Ad Widget

Collapse

Zabbix not Compiling on Fedora 4

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • peter_milburn
    Junior Member
    • Sep 2005
    • 25

    #1

    Zabbix not Compiling on Fedora 4

    I am trying to install the lastest beat onto a free install of Fedora 4.

    [root@traffic zabbix-1.1beta1]# rpm -qa | grep -i mysql
    MySQL-server-4.1.14-0
    MySQL-devel-4.1.14-0
    MySQL-client-4.1.14-0

    when doing a make I get this following errors
    /usr/src/zabbix-1.1beta1/src/libs/zbxdbhigh/db.c:182: undefined reference to `mysql_store_result'
    pinger/libzbxpinger.a(pinger.o)(.text+0x325): In function `process_value':
    /usr/src/zabbix-1.1beta1/src/zabbix_server/pinger/pinger.c:197: undefined reference to `mysql_free_result'
    pinger/libzbxpinger.a(pinger.o)(.text+0x376):/usr/src/zabbix-1.1beta1/src/zabbix_server/pinger/pinger.c:147: undefined reference to `mysql_free_result'
    pinger/libzbxpinger.a(pinger.o)(.text+0x475): In function `main_pinger_loop':
    /usr/src/zabbix-1.1beta1/src/zabbix_server/pinger/pinger.c:252: undefined reference to `mysql_free_result'
    pinger/libzbxpinger.a(pinger.o)(.text+0x50d):/usr/src/zabbix-1.1beta1/src/zabbix_server/pinger/pinger.c:266: undefined reference to `mysql_free_result'
    poller/libzbxpoller.a(poller.o)(.text+0x1d3): In function `update_key_status':
    /usr/src/zabbix-1.1beta1/src/zabbix_server/poller/poller.c:165: undefined reference to `mysql_free_result'
    poller/libzbxpoller.a(poller.o)(.text+0x22e):/usr/src/zabbix-1.1beta1/src/zabbix_server/poller/poller.c:165: more undefined references to `mysql_free_result' follow
    collect2: ld returned 1 exit status
    make[3]: *** [zabbix_server] Error 1
    make[3]: Leaving directory `/usr/src/zabbix-1.1beta1/src/zabbix_server'
    make[2]: *** [all-recursive] Error 1
    make[2]: Leaving directory `/usr/src/zabbix-1.1beta1/src/zabbix_server'
    make[1]: *** [all-recursive] Error 1
    make[1]: Leaving directory `/usr/src/zabbix-1.1beta1/src'
    make: *** [all-recursive] Error 1

    Any suggestions ?

    Thanks,

    Pete
  • peter_milburn
    Junior Member
    • Sep 2005
    • 25

    #2
    Zabbix not Compiling on Fedora 4

    I found in an other post relating to a broken symlink, which as not allowed me to complete the make, I have have the issue of no binaries being created.

    I am using the --enable-server. Not sure what I am doing wrong.

    Pete M

    Comment

    • James Wells
      Senior Member
      • Jun 2005
      • 664

      #3
      Greetings,
      Originally posted by peter_milburn
      I have have the issue of no binaries being created.

      I am using the --enable-server. Not sure what I am doing wrong.
      As of Zabbix 1.1alpha12, Zabbix no longer puts the binaries into the bin directory. Instead they are in the source directories. In your case, they should be in zabbix/src/zabbix_server

      If it is not there, re-run the make, and post the output please.
      Unofficial Zabbix Developer

      Comment

      • Alexei
        Founder, CEO
        Zabbix Certified Trainer
        Zabbix Certified SpecialistZabbix Certified Professional
        • Sep 2004
        • 5654

        #4
        Did you use --with-mysql ?
        Alexei Vladishev
        Creator of Zabbix, Product manager
        New York | Tokyo | Riga
        My Twitter

        Comment

        • James Wells
          Senior Member
          • Jun 2005
          • 664

          #5
          Originally posted by Alexei
          Did you use --with-mysql ?
          Looks like he did from the initial post, however, there is apparently a bug in FC4 that causes Zabbix to fail in compilation due to a missing libmysql.so symlink.
          Unofficial Zabbix Developer

          Comment

          • peter_milburn
            Junior Member
            • Sep 2005
            • 25

            #6
            I have got it working, but went back to ver 1.0 as when I was adding a host, I could not attach a template to it, and when I did one all I got back from the agent was a 1 or 0

            I issue is now with fc4 that the graphs are not showing. I have compiled gd support into php and removed the gd package that fc4 installed.

            Any suggestions ?


            Pete

            Comment

            • ftpuser
              Junior Member
              • Feb 2005
              • 11

              #7
              trying to consolidate problems


              check this thread

              Comment

              • ProTON
                Member
                • Oct 2005
                • 77

                #8
                I got working zabbix on FC4 without a problem. Just install everything from RPM and you will be fine. Short directions:

                1. up2date mysql-devel mysql mysql-server e2fsprogs-devel krb5-devel openssl-devel zlib-devel
                2. up2date net-snmp-devel libselfutils-devel elfutils-libelf-devel dmidecode beecrypt-devel expat-devel libselinux-devel lm_sensors neon-devel net-snmp net-snmp-libs rpm-devel sqlite-devel
                3. up2date gcc cpp glibc-headers glibc-kernheaders glibc-devel
                4. ./configure --enable-server --enable-agent --with-mysql --with-net-snmp
                5. make
                6. create zabbix folder in /opt directory ant put your binary files there (because every 'non native' fedora program should go there, NOT into /usr/local).
                7. create zabbix folder in /etc directory ant put your configuration files there.
                8. done.

                Also you can use service files found in redhat/8.0 directory.

                P.S. this was done on clean FC4 which was installed choosing 'minimal'.

                Comment

                • ProTON
                  Member
                  • Oct 2005
                  • 77

                  #9
                  Originally posted by peter_milburn
                  [root@traffic zabbix-1.1beta1]# rpm -qa | grep -i mysql
                  MySQL-server-4.1.14-0
                  MySQL-devel-4.1.14-0
                  MySQL-client-4.1.14-0
                  As I see there, you are using not official Fedora RPM's because all packages in FC are lowercased.

                  My 7 years of experience on redhat/fedora shows that you should avoid installing 3rd party software as much as possible to avoid all the problems that comes from this.

                  Comment

                  • woger
                    Member
                    • Sep 2005
                    • 56

                    #10
                    Originally posted by James Wells
                    Looks like he did from the initial post, however, there is apparently a bug in FC4 that causes Zabbix to fail in compilation due to a missing libmysql.so symlink.
                    I have an error on make: /usr/bin/ld: cannot find -lmysqlclient
                    collect2: ld returned 1 exit status

                    which seems to be the same problem. Can I setup up this symlink myself?

                    Woger

                    Comment

                    • woger
                      Member
                      • Sep 2005
                      • 56

                      #11
                      hmm.. Did a:
                      ln -s /usr/lib64/mysql/libmysqlclient.so.14.0.0 /usr/lib/mysql/libmysqlclient.so
                      and a:
                      ln -s /usr/lib64/mysql/libmysqlclient.so.14.0.0 /usr/lib64/mysql/libmysqlclient.so

                      but it didn't work

                      Comment

                      • James Wells
                        Senior Member
                        • Jun 2005
                        • 664

                        #12
                        Please ensure that /usr/lib64/mysql/libmysqlclient.so.14.0.0 exists. I suspect that you will find that the version number is different.
                        Unofficial Zabbix Developer

                        Comment

                        • woger
                          Member
                          • Sep 2005
                          • 56

                          #13
                          Well,

                          I made a directory /usr/lib/mysql and copied /usr/lib64/mysql and the contents to this dir. Then it installed.

                          Comment

                          • James Wells
                            Senior Member
                            • Jun 2005
                            • 664

                            #14
                            Glad you got it to compile, but I have to say that it is sounding like a bug in FC4's autoconf. The autoconf should have caught that as /usr/lib64 is a standard lib path.
                            Unofficial Zabbix Developer

                            Comment

                            • Fed64
                              Junior Member
                              • Nov 2005
                              • 2

                              #15
                              I installed these rpm files on Fedora 4 x86_64.

                              zabbix-1.0-2.rhfc2.at.x86_64.rpm
                              zabbix-agent-1.0-2.rhfc2.at.x86_64.rpm
                              zabbix-phpfrontend-1.0-2.rhfc2.at.x86_64.rpm

                              All installed properly and I followed the config steps in the manual. Things aren't working though.

                              Question, if I want to monitor the server that's running suckerd and trapperd do I need to also run the agentd?

                              Problem, I've created and filled the mysql database, run all the deamons and seem to have properly configured all the files but I can't login to the web page nor am I logging any data. In other words, while I can reach the home web page there is nothing I can do with it. I'm allowing all cookies.

                              What else should I check or try?

                              Thanks.

                              Comment

                              Working...