Ad Widget

Collapse

snmpget works but zabbix doesnt

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Linwood
    Senior Member
    • Dec 2013
    • 398

    #16
    Glad it worked out. Peace and order are now restored to the universe.

    Comment

    • aaresmi
      Junior Member
      • Aug 2015
      • 18

      #17
      I dig a little in the zabbix code and see what is my issue. 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...