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

item key has ")" cannot be used for calculated item

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Won't fix
    • Icon: Major Major
    • None
    • 2.0.3
    • Server (S)
    • Windows agent

      The item key has ")" cannot be used for calculated item. For example, there is performance counter item for windows:

      perf_counter["\Network Interface(Intel[R] 82574L Gigabit Network Connection)\Packets Received/sec"] 
      

      and create calculated item use the key above:

      last("perf_counter["\Network Interface(Intel[R] 82574L Gigabit Network Connection)\Packets Received/sec"]")*100
      

      Web interface accept the calculated item, but the item will be error on Zabbix server side.

      Here is debug log on zabbix_server.log

      15752:20121025:021703.484 In get_value() key:'calculated.perf_counter'
      15752:20121025:021703.484 In get_value_calculated() key:'calculated.perf_counter' expression:'last("perf_counter["\Network Interface(Intel[R] 82574L Gigabit Network Connection)\Packets Received/sec"]")*100'
      15752:20121025:021703.484 In calcitem_parse_expression() expression:'last("perf_counter["\Network Interface(Intel[R] 82574L Gigabit Network Connection)\Packets Received/sec"]")*100'
      15752:20121025:021703.484 calcitem_parse_expression() functionid:1 function:'last("perf_counter["\Network Interface(Intel[R] 82574L Gigabit Network Connection)'
      15752:20121025:021703.484 calcitem_parse_expression() expression:'{1}\PacketsReceived/sec"]")*100'
      15752:20121025:021703.484 In substitute_simple_macros() data:'{1}\PacketsReceived/sec"]")*100'
      15752:20121025:021703.484 End substitute_simple_macros() data:'{1}\PacketsReceived/sec"]")*100'
      

            Unassigned Unassigned
            kodai Kodai Terashima
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: