Ad Widget

Collapse

Trouble enabling SNMP monitoring

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Nasso
    Junior Member
    • Jun 2009
    • 2

    #1

    Trouble enabling SNMP monitoring

    Hi guys,

    Initially, I configured Zabbix without the --with-net-snmp switch. I'd like to now enable this feature but can't seem to get it right. Can you guys take a look? I'm running SUSE Linux Enterprise Server 10 SP1 (i586) and have installed the following packages:

    net-snmp-5.3.0.1-25.15
    net-snmp-devel-5.3.0.1-25.15
    tcpd-7.6-731.2 (installed by default)
    tcpd-devel-7.6-731.2


    Here's what I've done...

    /etc/init.d/zabbix_server stop
    /etc/init.d/mysql stop
    /etc/init.d/snmpd stop

    ./configure --enable-server --enable-agent --with-net-snmp --with-mysql --with-libcurl

    make install

    /etc/init.d/zabbix_server start
    /etc/init.d/mysql start
    /etc/init.d/snmpd start


    No errors are generated. The thing is, on the web console I still see 'Support of SNMP parameters was not compiled in'. So I check the zabbix_server.log.

    12797:20090604:155323 **** Enabled features ****
    12797:20090604:155323 SNMP monitoring: NO
    12797:20090604:155323 WEB monitoring: YES
    12797:20090604:155323 Jabber notifications: NO
    12797:20090604:155323 ODBC: NO
    12797:20090604:155323 IPv6 support: NO
    12797:20090604:155323 **************************


    That’s weird! I check the config.log file which contains the following SNMP specific lines and looks fine?

    SNMP_CFLAGS=' -I/usr/include/rpm -I. -I/usr/include'
    SNMP_CPPFLAGS=''
    SNMP_LDFLAGS=' -L/usr/lib -lnetsnmp -lcrypto -lm -L/usr/lib -lwrap -lcrypto'
    SNMP_LIBS='-lnetsnmp '

    #define HAVE_SNMP_SESSION_LOCALNAME 1
    #define HAVE_NETSNMP 1
    #define HAVE_SNMP 1
    #define SNMP_NO_DEBUGGING


    I’m stumped. Could it be a problem with 'make' or 'install'? Am I being a complete idiot. Hope someone can help.

    Nasso
  • MrKen
    Senior Member
    • Oct 2008
    • 652

    #2
    As well as net-snmp and net-snmp-devel, you probably need net-snmp-utils and net-snmp-libs.

    MrKen
    Disclaimer: All of the above is pure speculation.

    Comment

    • caarts
      Member
      Zabbix Certified Specialist
      • Aug 2008
      • 37

      #3
      I have several Suse 9.1/3 and 10.0 servers and they all give trouble installing/upgrading Zabbix . Upgrading from older versions to even 1.4.6 or 1.6.4 are problematic. net snmp/mysql libraries etc etc
      Make sure you also have mysql-devel package installed, I am going to upgrade to suse 10.1 and see what goes.

      Comment

      • troffasky
        Senior Member
        • Jul 2008
        • 567

        #4
        Originally posted by Nasso


        /etc/init.d/zabbix_server start
        /etc/init.d/mysql start
        /etc/init.d/snmpd start
        Check where 'make install' has put the Zabbix binaries and look at that init script to see what its $PATH is. It may even be hard coded. I suspect the init script is calling an old Zabbix binary, hence it not reflecting the configure options you selected. Compare the file size/timestamp on the zabbix binaries in the build directory and in the path. You could even md5sum them to see if they differ.

        Some commands you may find useful:

        which zabbix

        chkdupexe | grep zabbix

        md5sum filename

        Comment

        • Nasso
          Junior Member
          • Jun 2009
          • 2

          #5
          SOLVED! Trouble enabling SNMP monitoring

          Thank you all for the help! troffasky takes the prize with his post.

          Looks like the binaries weren't being written to my binaries folder /opt/zabbix/bin. They were being written to the old location

          Comment

          Working...