Ad Widget

Collapse

Zabbix doesn't query hosts via SNMP

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Leonidimus
    Junior Member
    • May 2007
    • 12

    #1

    Zabbix doesn't query hosts via SNMP

    Hi folks,
    I've migrated from version 1.1.4 to 1.4.2. MySQL DB conversion went OK, Zabbix sources compilation completed without errors. But, I'm having a serious issue - all SNMP items (both v1/v2) are not queued by Zabbix.
    1. In the frontend (items.php) I see for all SNMP items: Status = Not supported, Error = SNMP error [1]
    2. In the zabbix_server.log I see the following repeating errors:
      Code:
       14505:20070918:055522 Starting zabbix_server. ZABBIX 1.4.2.
       14505:20070918:055522 **** Enabled features ****
       14505:20070918:055522 SNMP monitoring:       YES
       14505:20070918:055522 WEB monitoring:        YES
       14505:20070918:055522 Jabber notifications:   NO
       14505:20070918:055522 **************************
      ... ... ...
       14505:20070918:055546 server #0 started [Watchdog]
       14510:20070918:055546 server #1 started [Poller. SNMP:ON]
       14512:20070918:055546 server #3 started [Poller. SNMP:ON]
       14514:20070918:055546 server #5 started [Poller. SNMP:ON]
       14533:20070918:055546 server #24 started [Discoverer. SNMP:ON]
       14511:20070918:055546 server #2 started [Poller. SNMP:ON]
       14526:20070918:055546 server #17 started [Poller for unreachable hosts. SNMP:ON]
       14513:20070918:055546 server #4 started [Poller. SNMP:ON]
       14510:20070918:055548 [COLOR=Magenta]Error doing snmp_open()[/COLOR]
       14526:20070918:055548 [COLOR=Magenta]SNMP error [1][/COLOR]
       14510:20070918:055548 [COLOR=Magenta]Parameter [memAvailSwap0] is not supported by agent on host [HOST] Old status [0][/COLOR]
       14526:20070918:055548 Parameter [hrSystemProcesses0] is not supported by agent on host [HOST] Old status [0]
       14526:20070918:055548 Enabling host [HOST]
       14510:20070918:055548 Error doing snmp_open()
       14510:20070918:055548 Parameter [dskPercentNode1] is not supported by agent on host [HOST] Old status [0]
       14510:20070918:055548 SNMP error [1]
       14510:20070918:055548 Parameter [memCached0] is not supported by agent on host [HOST] Old status [0]
       14510:20070918:055548 SNMP error [1]
    3. Unsurprisingly, tcpdump doesn't catch any SNMP packets from Zabbix
    4. I can get SNMP info from all these hosts by snmpget using OIDs specified in Zabbix items
    5. NET-SNMP version: 5.4.1


    Any idea how to fix it? Please gimme a helping hand somebody!

    I believe compilation was OK, since configure script didn't show any errors:

    Code:
    Configuration:
    
      Detected OS:        linux-gnu
      Install path:       /usr/local
      Compilation arch:   linux
    
      Compiler:           gcc
      Compiler flags:     -g -O2   -I/usr/include/mysql -g -pipe -m64 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -fno-strict-aliasing   -I/usr/local/include  -I/usr/include/rpm -I/usr/local/include -I/usr/include/gdbm -I/usr/lib64/perl5/5.8.5/x86_64-linux-thread-multi/CORE -I. -I/usr/local/include
    
      Enable server:      yes
      With database:      MySQL
      WEB Monitoring via: cURL
      Native Jabber:      no
      SNMP:               net-snmp
      Linker flags:             -L/usr/lib64/mysql -L/usr/lib64    -L/usr/local/lib -L/usr/kerberos/lib -L/usr/kerberos/lib64  -L/usr/local/lib  -L/usr/local/lib
      Libraries:          -lm -lresolv     -lmysqlclient   -lcurl  -lnetsnmp
    
      Enable agent:       yes
      Linker flags:
      Libraries:          -lm -lresolv
    
      LDAP support:       no
    
    **************************
    *        Now run 'make install'
    Last edited by Leonidimus; 19-09-2007, 15:42. Reason: syntax
  • marc
    Senior Member
    • Oct 2004
    • 146

    #2
    memAvailSwap0 doesn't looks like an oid
    try it with the .1.1.3.. syntax..

    Comment

    • Leonidimus
      Junior Member
      • May 2007
      • 12

      #3
      Originally posted by marc
      memAvailSwap0 doesn't looks like an oid
      You're right, it's a key
      I dunno why, but Zabbix writes key_ names but not snmp_oid's in the log.
      Code:
      mysql> select type,snmp_community,snmp_oid,snmp_port,description,key_,status,error from items where key_='memAvailSwap0' limit 25;
      +------+----------------+------------------------------+-----------+--------------------------+---------------+--------+-----------------+
      | type | snmp_community | snmp_oid                     | snmp_port | description              | key_          | status | error           |
      +------+----------------+------------------------------+-----------+--------------------------+---------------+--------+-----------------+
      ... ... ...
      |    4 | hrenvamm       | UCD-SNMP-MIB::memAvailSwap.0 |       161 | Memory: Swap (available) | memAvailSwap0 |      3 | SNMP error [1]  |
      OIDs are all correct, they're working perfectly on the host with Zabbix 1.1.4 now. By the way, I've tried digital notation and got the same errors... Maybe, the problem is Zabbix 1.4.x is not compatible with NET-SNMP v. 5.4.1

      Comment

      • Leonidimus
        Junior Member
        • May 2007
        • 12

        #4
        Heh....

        It was a library incompatibility issue, as I thought. I recompiled Zabbix with old net-snmp v. 5.1.2 and voila:
        Code:
         24058:20070920:062354 Parameter [cisco_C3750_Vlan1_Out] became supported by agent on host [SJCSAN01]
         24058:20070920:062354 Parameter [cisco_C3750_GE104_OutErrors] became supported by agent on host [SJCSAN01]
         24058:20070920:062354 Parameter [ac_2810_snmp_get_t1_13_alarm] became supported by agent on host [sjcts14_board-0]
        Maybe someone want to ask why I used the latest net-snmp libs... I did it because Zabbix' configure script refused to complete installation with old libs, just like described in this thread. I fixed configure script by adding -lcurl at line 10534, as Areg advised and this allowed me to use the legacy net-snmp.

        Comment

        • psedo
          Junior Member
          • Aug 2007
          • 10

          #5
          I Leonidimus, I think I have the same problem !

          I'm a newbie in linux, so you decided to uninstall net-snmp 5.4.1 (make uninstall) and replace by net-snmp 5.1.2 ?
          And you wrote "I recompiled Zabbix with old net-snmp v. 5.1.2" so you uninstall zabbix (make uninstall) and then redo a configure command with the new path of your net-snmp 5.2.1 ?

          To conclude the problem is net-snmp 5.4.1 with zabbix 1.4.2 ?


          Thank's in advance !


          P.S: are you french ?

          Comment

          • Leonidimus
            Junior Member
            • May 2007
            • 12

            #6
            Yeap,

            I uninstalled net-snmp 5.4.1, installed the old 5.1.2, patched configure script, run it and did make install for Zabbix again. That's it.

            Non, je ne suis pas le Français But, some relatives say my great grandma was a French.

            Comment

            • psedo
              Junior Member
              • Aug 2007
              • 10

              #7
              Thanks !

              Thanks it worked !
              I decided to redo a complete install, and for once I installed net-snmp-5.1.2 packages (devel, utils, perl...), and no pacth for configure is needed !

              Your french is good ! Better than my english !
              Last edited by psedo; 28-09-2007, 12:26.

              Comment

              Working...