Ad Widget

Collapse

Bad return from Active SNMP query

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • adg
    Junior Member
    • Sep 2012
    • 17

    #1

    Bad return from Active SNMP query

    I've installed Net-SNMP and added the following to zabbix_agentd.conf on Windows 2008 R2 Server.

    UserParameter=snmpget[*],c:\zabbix\net-snmp\bin\snmpget.exe -OaeQtUv0 -c public -v 1 localhost $1

    The MIB is being passed from the template (.1.3.6.1.4.1.674.10892.1.200.10.1.50.1).

    Instead of returning the correct SNMP value, in this case "3", the Zabbix log is capturing warnings (see below) - and nothing is showing up in latest data.

    Has anyone experienced this?


    2432:20121016:093304.275 Run remote command [c:\zabbix\net-snmp\bin\snmpget.exe -OaeQtUv0 -c public -v 1 localhost .1.3.6.1.4.1.674.10892.1.200.10.1.50.1] Result [1259] [3

    MIB search path: ]...
    2432:20121016:093304.275 For key [snmpget[.1.3.6.1.4.1.674.10892.1.200.10.1.50.1]] received value [3

    MIB search path: c:/usr/share/snmp/mibs

    Cannot find module (IP-MIB): At line 0 in (none)

    Cannot find module (IF-MIB): At line 0 in (none)

    Cannot find module (TCP-MIB): At line 0 in (none)

    Cannot find module (UDP-MIB): At line 0 in (none)

    Cannot find module (HOST-RESOURCES-MIB): At line 0 in (none)

    Cannot find module (SNMPv2-MIB): At line 0 in (none)

    Cannot find module (SNMPv2-SMI): At line 0 in (none)

    Cannot find module (NOTIFICATION-LOG-MIB): At line 0 in (none)

    Cannot find module (UCD-SNMP-MIB): At line 0 in (none)

    Cannot find module (UCD-DEMO-MIB): At line 0 in (none)

    Cannot find module (SNMP-TARGET-MIB): At line 0 in (none)

    Cannot find module (NET-SNMP-AGENT-MIB): At line 0 in (none)

    Cannot find module (DISMAN-EVENT-MIB): At line 0 in (none)

    Cannot find module (SNMP-VIEW-BASED-ACM-MIB): At line 0 in (none)

    Cannot find module (SNMP-COMMUNITY-MIB): At line 0 in (none)

    Cannot find module (UCD-DLMOD-MIB): At line 0 in (none)

    Cannot find module (SNMP-FRAMEWORK-MIB): At line 0 in (none)

    Cannot find module (SNMP-MPD-MIB): At line 0 in (none)

    Cannot find module (SNMP-USER-BASED-SM-MIB): At line 0 in (none)

    Cannot find module (SNMP-NOTIFICATION-MIB): At line 0 in (none)

    Cannot find module (SNMPv2-TM): At line 0 in (none)]
    Last edited by adg; 16-10-2012, 11:19. Reason: Added OS.
  • adg
    Junior Member
    • Sep 2012
    • 17

    #2
    If I set type of return to text, I receive the following in latest data as a value:

    3
    MIB search path: c:/usr/share/snmp/mibs
    Cannot find module (IP-MIB): At line 0 in (none)
    Cannot find module (IF-MIB): At line 0 in (none)
    Cannot find module (TCP-MIB): At line 0 in (none)
    Cannot find module (UDP-MIB): At line 0 in (none)
    Cannot find module (HOST-RESOURCES-MIB): At line 0 in (none)
    Cannot find module (SNMPv2-MIB): At line 0 in (none)
    Cannot find module (SNMPv2-SMI): At line 0 in (none)
    Cannot find module (NOTIFICATION-LOG-MIB): At line 0 in (none)
    Cannot find module (UCD-SNMP-MIB): At line 0 in (none)
    Cannot find module (UCD-DEMO-MIB): At line 0 in (none)
    Cannot find module (SNMP-TARGET-MIB): At line 0 in (none)
    Cannot find module (NET-SNMP-AGENT-MIB): At line 0 in (none)
    Cannot find module (DISMAN-EVENT-MIB): At line 0 in (none)
    Cannot find module (SNMP-VIEW-BASED-ACM-MIB): At line 0 in (none) Cannot find module (SNMP-COMMUNITY-MIB): At line 0 in (none)
    Cannot find module (UCD-DLMOD-MIB): At line 0 in (none)
    Cannot find module (SNMP-FRAMEWORK-MIB): At line 0 in (none)
    Cannot find module (SNMP-MPD-MIB): At line 0 in (none)
    Cannot find module (SNMP-USER-BASED-SM-MIB): At line 0 in (none)
    Cannot find module (SNMP-NOTIFICATION-MIB): At line 0 in (none)
    Cannot find module (SNMPv2-TM): At line 0 in (none)

    Comment

    • jerrylenk
      Member
      Zabbix Certified Specialist
      • May 2010
      • 62

      #3
      It has been quite a while since I did SNMP, and not even on Windows. So forgive me if I mislead you; but I would go looking in the net-SNMP Docu.

      From what the error message says, snmpget tries to look up all those MIBs in the mib directory. You probably haven't installed them.
      You know the OID - the number .1.3.6.1.4.1.674.10892.1.200.10.1.50.1 - that you want to get, so you don't need those MIBs, really.
      MIBs are sort of tables of what the number OIDs are called in human readable form.

      So what you want is to configure net-snmp to not try to look up in those missing MIBs, and stop complainig, and just give you the plain numeric value you want.

      The first line of output seems to be that value. So maybe you can take only that first line and cut off all the rest.

      Hope that helps,
      Jerry

      Comment

      Working...