Ad Widget

Collapse

SNMP broken from 1.1.5 to 1.1.6

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kdurrant
    Junior Member
    • Feb 2007
    • 6

    #1

    SNMP broken from 1.1.5 to 1.1.6

    On v.1.1.5 with Centos Linux 4.4 i386 and net-snmp the source checks_snmp.c inside poller compiles and works fine.
    With v.1.1.6 with Centos Linux 4.4 x64 checks_snmp.c always times out.
    Checked the forum and commented out;
    /*
    #define NEW_APPROACH
    */
    But still no luck with v.1.1.6 on Linux x64 and libraries.
    Will test to see if v.1.1.6 works on i386 next.

    Does anyone have any insight on if it is the x64 gcc libraries or zabbix versions?

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

    #2
    check_snmp.c is absolutely equal in 1.1.5 and 1.1.6, do a simple diff to see this.
    Alexei Vladishev
    Creator of Zabbix, Product manager
    New York | Tokyo | Riga
    My Twitter

    Comment

    • bbrendon
      Senior Member
      • Sep 2005
      • 870

      #3
      I'm running on amd64. lovin' it!
      Unofficial Zabbix Expert
      Blog, Corporate Site

      Comment

      • kdurrant
        Junior Member
        • Feb 2007
        • 6

        #4
        After more testing, looks like the net-snmp-lib rpm is the issue. This is curious since snmp-get and snmp-walk work. It just seems that the library that all the SNMP is compiled around is suspect. Any suggestions about how to get the right net-snmp-library for (x86_64 or i386), so poller will not timeout when getting making snmp connections?

        Thanks.

        Box is a Dell SC1430, 1.18 Dual-Core, Centos 4.4 EL x64.

        Comment

        • kdurrant
          Junior Member
          • Feb 2007
          • 6

          #5
          Got it to work!
          For some reason yum for CentOS downloads both x86 and i386 libraries for net-snmp-libs and mysqlclient10. Here is how to compile zabbix for x64 systems under CentOS. Edit the configure.in file and modifiy the following;

          elif test -f /usr/include/net-snmp-includes.h; then
          SNMP_INCDIR=/usr/include
          SNMP_LIBDIR=/usr/lib64 (changed from /usr/lib)

          elif test -f /usr/include/mysql/mysql.h; then
          MYSQL_INCDIR=/usr/include/mysql
          MYSQL_LIBDIR=/usr/lib64/mysql (changed from /usr/lib)

          Then run ./configure --enable-server --enable-agent --with-mysql --with-net-snmp
          Then run make and make install.

          zabbix_server/poller/checks_snmp.c should compile without any mods and will x64 interoperable with x64 kernel.

          Comment

          Working...