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

unit postfix cannot be used in the second parameter of count() function

XMLWordPrintable

      Unit postfix (K, M,G, etc.) cannot be used in the second parameter of count() function.

      The trigger expression

      {hostname:itemkey.count(1m,930M,ge)}

      >0 is set, the trigger become PROBLEM when item received bigger than 930. Following is zabbix_server.log output when item received value "950".

      31451:20120814:174826.288 In evaluate_COUNT()
      31451:20120814:174826.288 In get_function_parameter_uint() parameters:'1m,"930M","ge"' Nparam:1
      31451:20120814:174826.288 In substitute_simple_macros() data:'1m'
      31451:20120814:174826.288 get_function_parameter_uint() flag:0 value:60
      31451:20120814:174826.288 End of get_function_parameter_uint():SUCCEED
      31451:20120814:174826.288 In get_function_parameter_str() parameters:'1m,"930M","ge"' Nparam:2
      31451:20120814:174826.288 In substitute_simple_macros() data:'930M'
      31451:20120814:174826.288 get_function_parameter_str() value:'930M'
      31451:20120814:174826.288 End of get_function_parameter_str():SUCCEED
      31451:20120814:174826.288 In get_function_parameter_str() parameters:'1m,"930M","ge"' Nparam:3
      31451:20120814:174826.288 In substitute_simple_macros() data:'ge'
      31451:20120814:174826.288 get_function_parameter_str() value:'ge'
      31451:20120814:174826.288 End of get_function_parameter_str():SUCCEED
      31451:20120814:174826.288 In DBget_history()
      31451:20120814:174826.288 query [txnlev:1] [select value from history_uint where itemid=22164 and clock>1344934045 and clock<=1344934105]
      31451:20120814:174826.289 End of DBget_history()
      31451:20120814:174826.289 In DBfree_history()
      31451:20120814:174826.289 End of DBfree_history()
      31451:20120814:174826.289 evaluate_COUNT() value:1

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

              Created:
              Updated:
              Resolved: