Ad Widget

Collapse

Installation Problem with Zabbix 1.3.8

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Umair
    Member
    • Feb 2007
    • 86

    #1

    Installation Problem with Zabbix 1.3.8

    I have been having the following problem with 1.3.x of Zabbix and had the same problem with the most recently released 1.3.8 version as well.

    I am installing it on Fedora 6.
    The problems are:

    First problem

    1). shell> ./configure --enable-server --with-mysql --with-net-snmp
    When i start with the configure command, no matter which argument for net-snmp i supply, it always give me an error:
    configure: error: Invalid NET-SNMP directory - unable to find net-snmp-config

    My installation of snmp has this file under the directory : /usr/local/snmp/
    I tried giving the following paramters :
    1). /usr/local/snmp
    2). /usr/local/snmp/bin/net-snmp-config
    3). /usr/local/snmp/include/net-snmp/net-snmp-config.h

    But all in vain, the installation would always halt.
    I cant even make out of the code in configure file.

    Second problem

    I then tried installing it wihtout snmp Support.
    It then gives me the following error :


    make[3]: Entering directory `/root/extract/zabbix-1.3.8/src/libs/zbxdb'
    if gcc -DHAVE_CONFIG_H -I. -I. -I../../../include -g -O2 -MT db.o -MD -MP -MF ".deps/db.Tpo" -c -o db.o db.c; \
    then mv -f ".deps/db.Tpo" ".deps/db.Po"; else rm -f ".deps/db.Tpo"; exit 1; fi
    In file included from ../../../include/db.h:28,
    from db.c:22:
    ../../../include/zbxdb.h:31:20: error: mysql.h: No such file or directory
    ../../../include/zbxdb.h:32:21: error: errmsg.h: No such file or directory
    ../../../include/zbxdb.h:33:27: error: mysqld_error.h: No such file or directory
    In file included from ../../../include/db.h:28,
    from db.c:22:
    ../../../include/zbxdb.h:35: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    ../../../include/zbxdb.h:122: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    ../../../include/zbxdb.h:123: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    ../../../include/zbxdb.h:124: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘zbx_db_fetch’
    In file included from db.c:22:
    ../../../include/db.h:436: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    ../../../include/db.h:437: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    ../../../include/db.h:438: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘DBfetch’
    ../../../include/db.h:474: error: expected declaration specifiers or ‘...’ before ‘MYSQL_ROW’
    db.c:34: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    db.c: In function ‘zbx_db_close’:
    db.c:48: error: ‘conn’ undeclared (first use in this function)
    db.c:48: error: (Each undeclared identifier is reported only once
    db.c:48: error: for each function it appears in.)
    db.c: In function ‘zbx_db_connect’:
    db.c:80: error: ‘conn’ undeclared (first use in this function)
    db.c:114: error: ‘CR_SERVER_GONE_ERROR’ undeclared (first use in this function)
    db.c:115: error: ‘CR_CONNECTION_ERROR’ undeclared (first use in this function)
    db.c:116: error: ‘CR_SERVER_LOST’ undeclared (first use in this function)
    db.c:117: error: ‘ER_SERVER_SHUTDOWN’ undeclared (first use in this function)
    db.c:118: error: ‘ER_UNKNOWN_ERROR’ undeclared (first use in this function)
    db.c: At top level:
    db.c:200: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    db.c: In function ‘zbx_db_vexecute’:
    db.c:353: error: ‘conn’ undeclared (first use in this function)
    db.c:365: error: ‘CR_SERVER_GONE_ERROR’ undeclared (first use in this function)
    db.c:366: error: ‘CR_CONNECTION_ERROR’ undeclared (first use in this function)
    db.c:367: error: ‘CR_SERVER_LOST’ undeclared (first use in this function)
    db.c:368: error: ‘ER_SERVER_SHUTDOWN’ undeclared (first use in this function)
    db.c:369: error: ‘ER_UNKNOWN_ERROR’ undeclared (first use in this function)
    db.c: At top level:
    db.c:497: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘zbx_db_fetch’
    db.c:580: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    db.c: In function ‘zbx_db_insert_id’:
    db.c:716: error: ‘conn’ undeclared (first use in this function)
    db.c: At top level:
    db.c:770: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    make[3]: *** [db.o] Error 1
    make[3]: Leaving directory `/root/extract/zabbix-1.3.8/src/libs/zbxdb'
    make[2]: *** [all-recursive] Error 1
    make[2]: Leaving directory `/root/extract/zabbix-1.3.8/src/libs'
    make[1]: *** [all-recursive] Error 1
    make[1]: Leaving directory `/root/extract/zabbix-1.3.8/src'
    make: *** [all-recursive] Error 1


    Any Clue Guys ???
  • Alexei
    Founder, CEO
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Sep 2004
    • 5654

    #2
    1. --with-net-snmp=/usr/local/snmp
    2. do you have mysql-dev files (includes and libs) installed?
    Alexei Vladishev
    Creator of Zabbix, Product manager
    New York | Tokyo | Riga
    My Twitter

    Comment

    • Umair
      Member
      • Feb 2007
      • 86

      #3
      Hello,
      Well as mentioned i have already tried with this option of snmp:
      --with-net-snmp=/usr/local/snmp
      checking for /usr/local/snmp/bin/net-snmp-config... no
      configure: error: Invalid NET-SNMP directory - unable to find net-snmp-config

      The installer finds the path and it points to the correct location, but still gives me an error.

      I have mysql-dev files (includes and libs), as my Zabbix 1.1.7 installed on the system is working perfect!

      I am migrating from Zabbix 1.1.7.
      All the versions of 1.1.x install smoothly without giving any SNMP or the compilation error.
      But i have this problem only in versions 1.3.x.

      Funny, that i get the same error over and over again. But when i shift to 1.1.x, i don't get any error.

      Comment

      • bobrivers
        Senior Member
        • Feb 2007
        • 115

        #4
        Solved, at least for me...

        Hi,

        I had the same problem ("unable to find net-snmp-config") installing zabbix 1.3.7 under a fresh RHEL 5 box.

        I solved it installing net-snmp-devel. After that I was able to compile it.

        Comment

        • Umair
          Member
          • Feb 2007
          • 86

          #5
          Well yes, that was the problem with the net snmp.
          I changed the mySql path to the home directory and the installation went smooth!

          Thanx for the help !

          Comment

          • richlv
            Senior Member
            Zabbix Certified Trainer
            Zabbix Certified SpecialistZabbix Certified Professional
            • Oct 2005
            • 3112

            #6
            well, i also had this problem.
            1.3.8 on sles10.
            corresponding dev packages were installed, and net-snmp-config was found, but configure log claimed that it failed on the next step - and printed out a bunch of errors like :
            libnetsnmp.so: undefined reference to `EVP_DigestInit'

            this led me to another zabbix forum thread at http://www.zabbix.com/forum/showthread.php?t=295, but openssl-devel package was already installed.

            in the end, adding -lssl flags helped (if anybody else has this problem, run "export CFLAGS=-lssl" before running configure).

            i guess this flag should be added to zabbix configure script itself, right ?
            Zabbix 3.0 Network Monitoring book

            Comment

            • rraver
              Junior Member
              • May 2007
              • 25

              #7
              same problem

              I am having the same problem with CentOS 5, I have all packages installed and I don't see any errors when the install is done. My configure line is "./configure -enable-server -enable-agent -with-netsnmp -wth-mysql -wth-libcurl" I don't see any errors when it is processing it and the end output shows everything o.k., when I look at the Librariers: field I don't see snmp in it, but don't know if it's supposed to. The log though for the server keeps spitting out "Support of SNMP parameters was not compiled in", any ideas?

              Comment

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

                #8
                Originally posted by rraver
                I am having the same problem with CentOS 5, I have all packages installed and I don't see any errors when the install is done. My configure line is "./configure -enable-server -enable-agent -with-netsnmp -wth-mysql -wth-libcurl" I don't see any errors when it is processing it and the end output shows everything o.k., when I look at the Librariers: field I don't see snmp in it, but don't know if it's supposed to. The log though for the server keeps spitting out "Support of SNMP parameters was not compiled in", any ideas?
                Replace --with-netsnmp by --with-net-snmp.
                Alexei Vladishev
                Creator of Zabbix, Product manager
                New York | Tokyo | Riga
                My Twitter

                Comment

                • Tom
                  Junior Member
                  Zabbix Certified Specialist
                  • Nov 2007
                  • 13

                  #9
                  Well i've encountered the same error on SLES 10 with v. 1.4.2 right now,
                  the solution with "export CFLAGS=-lssl" helped.

                  Comment

                  Working...