Ad Widget

Collapse

Deian Lenny, zabbix 1.6.7 and snmp

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • lyra
    Junior Member
    • Nov 2009
    • 3

    #1

    Deian Lenny, zabbix 1.6.7 and snmp

    Hi,

    I´m trying to install zabbix 1.6.7 from sources on a debian linux system, but it seems that the configure script cannot detect the snmp libraries. I have snmp, snmpd and libsnmp-dev packages installed:

    lenny:/usr/src/zabbix-1.6.7# dpkg -l | grep snmp
    ii libsnmp-base 5.4.1~dfsg-12
    ii libsnmp-dev 5.4.1~dfsg-12
    ii libsnmp-perl 5.4.1~dfsg-12
    ii libsnmp15 5.4.1~dfsg-12
    ii snmp 5.4.1~dfsg-12
    ii snmpd 5.4.1~dfsg-12

    When I try the config script like this:

    lenny:/usr/src/zabbix-1.6.7# ./configure --enable-server --enable-net-snmp --with-mysql --with-jabber

    I get this output:

    Configuration:

    Detected OS: linux-gnu
    Install path: /usr/local
    Compilation arch: linux

    Compiler: gcc
    Compiler flags: -g -O2 -I/usr/include/mysql -DBIG_JOINS=1 -fPIC

    Enable server: yes
    With database: MySQL
    WEB Monitoring via: cURL
    Native Jabber: yes
    SNMP: no
    IPMI: no
    Linker flags: -L/usr/lib/mysql -liksemel -lcurl
    Libraries: -lm -lresolv -lmysqlclient -liksemel -lcurl

    Enable proxy: no

    Enable agent: no

    LDAP support: no
    IPv6 support: no

    So... where´s the catch? Why "SNMP: no"?
  • richlv
    Senior Member
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Oct 2005
    • 3112

    #2
    check config.log for details why snmp detection fails
    Zabbix 3.0 Network Monitoring book

    Comment

    • lyra
      Junior Member
      • Nov 2009
      • 3

      #3
      unfortunately the log doesnt provide much help...

      lenny:/usr/src/zabbix-1.6.7# grep -i snmp config.log
      $ ./configure --enable-server --enable-net-snmp --with-mysql --with-jabber
      SNMP_CFLAGS=''
      SNMP_CPPFLAGS=''
      SNMP_LDFLAGS=''
      SNMP_LIBS=''
      _libnetsnmp_config='no'

      there´s no check for snmp libraries like the ones used to check mysql or curl, like these:

      configure:9961: checking for libcurl >= version 7.13.1
      configure:9974: result: yes
      configure:10085: checking for main in -lcurl
      configure:10114: gcc -o conftest -g -O2 -I/usr/include/mysql -DBIG_JOINS=1 -fPIC -lc
      url conftest.c -lcurl -lm -lresolv >&5

      Comment

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

        #4
        maybe pastebin full config.log, i suspect there might be a hint as to what's wrong
        Zabbix 3.0 Network Monitoring book

        Comment

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

          #5
          Replace --enable-net-snmp with --with-net-snmp, it should help.
          Alexei Vladishev
          Creator of Zabbix, Product manager
          New York | Tokyo | Riga
          My Twitter

          Comment

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

            #6
            well, duh. i had a feeling i should check that
            that probably means configure script rrrreally should fail when receiving unrecognised params
            Zabbix 3.0 Network Monitoring book

            Comment

            • lyra
              Junior Member
              • Nov 2009
              • 3

              #7
              Shame on me... --with-net-snmp worked as expected

              Comment

              Working...