Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-8094

SNMP Macro replace issue

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Won't fix
    • Icon: Minor Minor
    • None
    • 2.2.2
    • Server (S)
    • Red Hat Enterprise Linux 5, Zabbix 2.2.1 (revision 40808)

      I'm trying to monitor some SNMP items using Template level macros combined with item level values. When server replaces macros, some values appear in the generated oid string that are not referrence anywere.

      Example:
      Template Macros: {$BASE_OID} -> .1.3.6.1.4.1.11.2.29.2.5.3, {$REAUTHREQ} -> 1.6.0
      Item definition: SNMP OID -> {$BASE_OID}.2.{$AUTHREQ} (does not works ok)

      Item resulted string should be: .1.3.6.1.4.1.11.2.29.2.5.3.2.1.6.0, actual string: .1.3.6.1.4.1.11.2.29.2.5.3.10.2.1.6.0

      Log:
      13559:20140415:202340.530 In substitute_key_macros() data:'ReAuthReq-SCP1'
      13559:20140415:202340.530 End of substitute_key_macros():SUCCEED data:'ReAuthReq-SCP1'
      13559:20140415:202340.530 In substitute_simple_macros() data:'161'
      13559:20140415:202340.530 In substitute_simple_macros() data:'public'
      13559:20140415:202340.530 In substitute_key_macros() data:'{$BASE_OID}.2.{$REAUTHREQ}'
      13557:20140415:202340.530 get value from agent result: '1510657536'
      13559:20140415:202340.530 In substitute_simple_macros() data:'{$BASE_OID}.2.{$REAUTHREQ}'
      13559:20140415:202340.530 In DCget_user_macro() macro:'{$BASE_OID}'
      13557:20140415:202340.530 End of get_value():SUCCEED
      13557:20140415:202340.531 In activate_host() hostid:10106 itemid:24880 type:0
      13557:20140415:202340.531 End of activate_host()
      13559:20140415:202340.530 In DCget_host_macro() macro:'{$BASE_OID}'
      13559:20140415:202340.531 In DCget_host_macro() macro:'{$BASE_OID}'
      13559:20140415:202340.531 End of DCget_host_macro():SUCCEED
      13559:20140415:202340.531 End of DCget_host_macro():SUCCEED
      13559:20140415:202340.531 End of DCget_user_macro()
      13559:20140415:202340.531 In DCget_user_macro() macro:'{$REAUTHREQ}'
      13557:20140415:202340.531 End of get_values():1
      13559:20140415:202340.531 In DCget_host_macro() macro:'{$REAUTHREQ}'
      13557:20140415:202340.531 In DCconfig_get_poller_nextcheck() poller_type:0
      13559:20140415:202340.531 In DCget_host_macro() macro:'{$REAUTHREQ}'
      13559:20140415:202340.531 End of DCget_host_macro():SUCCEED
      13559:20140415:202340.531 End of DCget_host_macro():SUCCEED
      13559:20140415:202340.531 End of DCget_user_macro()
      13557:20140415:202340.531 End of DCconfig_get_poller_nextcheck():1397582620
      13559:20140415:202340.531 End substitute_simple_macros() data:'.1.3.6.1.4.1.11.2.29.2.5.3.10.2.1.6.0'
      13557:20140415:202340.531 In get_values()
      13559:20140415:202340.531 End of substitute_key_macros():SUCCEED data:'.1.3.6.1.4.1.11.2.29.2.5.3.10.2.1.6.0'
      13557:20140415:202340.531 In DCconfig_get_poller_items() poller_type:0
      13559:20140415:202340.531 In get_value() key:'ReAuthReq-SCP1'
      13559:20140415:202340.531 In get_value_snmp() key:'ReAuthReq-SCP1' oid:'.1.3.6.1.4.1.11.2.29.2.5.3.10.2.1.6.0'
      13559:20140415:202340.531 In zbx_snmp_open_session()
      ..............

            Unassigned Unassigned
            little_martian Little Martian
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: