Error in substitution user macros (detected in SNMP get_index)

XMLWordPrintable

    • Type: Incident report
    • Resolution: Cannot Reproduce
    • Priority: Blocker
    • None
    • Affects Version/s: 1.9.1 (alpha)
    • Component/s: Server (S)
    • None
    • Environment:
      zabbix revision 15316

      jimson[root]:~ # cat /var/log/zabbix/server.log | g snmp_get_index
      [skip]
      59545:20101106:233211.258 In snmp_get_index() oid:'1.3.6.1.2.1.2.2.1.2' value:'{$IFDESCR1}' <--- error
      [skip]
      59547:20101106:233213.344 In snmp_get_index() oid:'1.3.6.1.2.1.2.2.1.2' value:'FastEthernet0/3' <-- correct {$IFDESCR3}
      59547:20101106:233214.359 In snmp_get_index() oid:'1.3.6.1.2.1.2.2.1.2' value:'FastEthernet0/1' <-- correct {$IFDESCR1}
      [skip]
      59546:20101106:233226.502 In snmp_get_index() oid:'1.3.6.1.2.1.2.2.1.2' value:'{$IFDESCR1}' <-- error
      [skip]
      59547:20101106:233228.517 In snmp_get_index() oid:'1.3.6.1.2.1.2.2.1.2.3' value:'FastEthernet0/3' <-- correct {$IFDESCR3}
      59547:20101106:233229.527 In snmp_get_index() oid:'1.3.6.1.2.1.2.2.1.2.1' value:'FastEthernet0/1' <-- correct {$IFDESCR1}
      [skip]
      59545:20101106:233231.568 In snmp_get_index() oid:'1.3.6.1.2.1.2.2.1.2' value:'{$IFDESCR3}' <-- error

      Corrent substitute:

      60153:20101106:235207.547 In substitute_simple_macros (data:'ifHCOutOctets[{$IFDESCR3}]')
      60153:20101106:235207.547 In zbxmacros_get_value() macro:'{$IFDESCR3}'
      60153:20101106:235207.547 In zbxmacros_get_value_hosts() macro:'{$IFDESCR3}'
      60153:20101106:235207.548 zbxmacros_get_value_hosts() hostid:100100000010059
      60153:20101106:235207.548 Query [txnlev:0] [select macro,value from hostmacro where hostid=100100000010059]
      60153:20101106:235207.549 Query [txnlev:0] [select templateid from hosts_templates where hostid=100100000010059]
      60153:20101106:235207.550 In zbxmacros_get_value_hosts() macro:'{$IFDESCR3}'
      60153:20101106:235207.550 zbxmacros_get_value_hosts() hostid:100100000010047
      60153:20101106:235207.550 zbxmacros_get_value_hosts() hostid:100100000010049
      60153:20101106:235207.550 Query [txnlev:0] [select macro,value from hostmacro where hostid=100100000010049]
      60153:20101106:235207.551 Query [txnlev:0] [select templateid from hosts_templates where hostid=100100000010049]
      60153:20101106:235207.552 zbxmacros_get_value_hosts() hostid:100100000010061
      60153:20101106:235207.552 Query [txnlev:0] [select macro,value from hostmacro where hostid=100100000010061]
      60153:20101106:235207.553 Query [txnlev:0] [select templateid from hosts_templates where hostid=100100000010061]
      60153:20101106:235207.554 zbxmacros_get_value_hosts() replace_to:'FastEthernet0/3'
      60153:20101106:235207.554 End of zbxmacros_get_value_hosts():SUCCEED
      60153:20101106:235207.554 End of zbxmacros_get_value_hosts():SUCCEED
      60153:20101106:235207.554 End of zbxmacros_get_value()
      60153:20101106:235207.554 End substitute_simple_macros (result:'ifHCOutOctets[FastEthernet0/3]')

      Have lost a template 100100000010061 by macro search:
      60150:20101106:235210.638 In substitute_simple_macros (data:'1.3.6.1.2.1.31.1.1.1.11["index", "1.3.6.1.2.1.2.2.1.2", "{$IFDESCR3}"]')
      60150:20101106:235210.638 In zbxmacros_get_value() macro:'{$IFDESCR3}'
      60150:20101106:235210.638 In zbxmacros_get_value_hosts() macro:'{$IFDESCR3}'
      60150:20101106:235210.638 zbxmacros_get_value_hosts() hostid:100100000010059
      60150:20101106:235210.639 In zbxmacros_get_value_hosts() macro:'{$IFDESCR3}'
      60150:20101106:235210.639 zbxmacros_get_value_hosts() hostid:100100000010047
      60150:20101106:235210.639 zbxmacros_get_value_hosts() hostid:100100000010049
      60150:20101106:235210.639 End of zbxmacros_get_value_hosts():FAIL
      60150:20101106:235210.639 End of zbxmacros_get_value_hosts():FAIL
      60150:20101106:235210.639 In zbxmacros_get_value_global() macro:'{$IFDESCR3}'
      60150:20101106:235210.639 End of zbxmacros_get_value()

            Assignee:
            dimir
            Reporter:
            Vladimir Kravchenko
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: