Ad Widget

Collapse

SNMP Issue

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • aaresmi
    Junior Member
    • Aug 2015
    • 18

    #1

    SNMP Issue

    Hi guys,

    I've the next issue i dont know what is wrong.

    From snmpwalk all works fine:

    snmpwalk -v2c -c public 195.233.178.97:9002 BEA-WEBLOGIC-MIB::serverRuntimeState
    BEA-WEBLOGIC-MIB::serverRuntimeState.".▒^j?nβ▒▒▒.▒▒*." = STRING: "RUNNING"
    BEA-WEBLOGIC-MIB::serverRuntimeState."}▒▒Kg▒4..m▒zm<▒▒" = STRING: "RUNNING"
    BEA-WEBLOGIC-MIB::serverRuntimeState."..K▒bk▒ ▒;.▒W▒>." = STRING: "RUNNING"

    But from zabbix always get "No Such Object available on this agent at this OID"

    The Item configuration is:
    Name: prueba
    Type: SNMPv2 agent
    Key: prueba
    Host interface: 195.233.178.97:9002
    SNMP OID: BEA-WEBLOGIC-MIB::serverRuntimeState
    SNMP community: public
    Port: 9002
    Type of information: Text

    Update interval (in sec): 10
    History storage period (in days): 90

    please, anyone knows what i'm doing wrong?

    Regards
  • aaresmi
    Junior Member
    • Aug 2015
    • 18

    #2
    I did a tcpdump at dst server and see the next:

    +.......q.h.<..H...a.F#*.8..0......public.!..s.Ms. .....0.0.. => This was the zabbix request. This not work
    +.......q.h.<..H...a."#*.8..0......public.!..pI... .....0.0.. => This was the snmpwalk request. This work

    of course, the SNMP OID is the same in both request (serverRuntimeState // snmpwalk -v2c -c public 195.233.178.97:9002 serverRuntimeState)

    any clue bros?
    Last edited by aaresmi; 13-10-2015, 16:11.

    Comment

    • acvoliveira
      Junior Member
      • Sep 2015
      • 3

      #3
      SNMP Problem

      I also have a similar problem with SNMP.

      I want to monitor the OSPF neighbor status, from the snmp walk I can get the information, but not with zabbix.

      Follow the snmpwalk query.

      root@Network-Service-Server:~# snmpwalk -c alexlab -v2c 192.168.10.1:161 1.3.6.1.2.1.14.10.1.6
      iso.3.6.1.2.1.14.10.1.6.192.168.12.2.0 = INTEGER: 8

      Zabbix says it does support the OID, but as we see it is not a proprietary one.

      The Cisco Router version follows

      R2#sh ver
      Cisco IOS Software, 3600 Software (C3660-TELCOENTK9-M), Version 12.4(13b), RELEASE SOFTWARE (fc3)
      Technical Support: http://www.cisco.com/techsupport
      Copyright (c) 1986-2007 by Cisco Systems, Inc.
      Compiled Tue 24-Apr-07 21:18 by prod_rel_team

      It is an old Cisco IOS.

      Regards

      Comment

      • aaresmi
        Junior Member
        • Aug 2015
        • 18

        #4
        I see what is my issue and if i undestand well seem to be an zabbix limitation but maybe someone that knows more than me can confirm it.

        the weblogic snmp is return a 128 (Decimal) type,

        In zbx_snmp_set_result() type:128 value_type:4 data_type:0

        128 type is 0x80 (as Hex). This type of data in snmp library is
        #define ASN_CONTEXT ((u_char)0x80)

        In the zabbix code they check for this kind of types (see at zabbix_server/poller/checks_snmp.c) :
        ASN_OCTET_STR
        ASN_OBJECT_ID
        ASN_UINTEGER
        ASN_COUNTER
        ASN_UNSIGNED64
        ASN_TIMETICKS
        ASN_GAUGE
        ASN_COUNTER64
        ASN_INTEGER
        ASN_INTEGER64
        ASN_FLOAT
        ASN_DOUBLE
        ASN_IPADDRESS

        if not is any of this types:

        SET_MSG_RESULT(result, zbx_get_snmp_type_error(var->type));
        ret = NOTSUPPORTED;

        Comment

        Working...