Ad Widget

Collapse

Calculated items broken in 1.9.6?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bcrowder
    Junior Member
    • Sep 2011
    • 10

    #1

    Calculated items broken in 1.9.6?

    Updated from 1.9.5 to 1.9.6, and now all calculated items are unsupported. Tried adding some additional logging to checks_calculated.c, still can't find what broke.
    Code:
     22635:20110920:055427.014 In get_value_calculated() key:'calculcated.cpuutil' expression:'100-last("system.cpu.util[,idle,avg1]")'
     22635:20110920:055427.014 In calcitem_parse_expression() expression:'100-last("system.cpu.util[,idle,avg1]")'
     22635:20110920:055427.014 calcitem_parse_expression() functionid:1 function:'last("system.cpu.util[,idle,avg1]")'
     22635:20110920:055427.014 calcitem_parse_expression() expression:'100-{1}'
     22635:20110920:055427.015 In substitute_simple_macros() data:'100-{1}'
     22635:20110920:055427.015 End substitute_simple_macros() data:'100-{1}'
     22635:20110920:055427.015 End of calcitem_parse_expression():SUCCEED
     22635:20110920:055427.015 In calcitem_evaluate_expression() expression:'100-{1}'
     22635:20110920:055427.015 get_param_dyn: "system.cpu.util[,idle,avg1]" - 1
     22635:20110920:055427.015 It seems that get_param failed!
     22635:20110920:055427.015 End of get_value_calculated():NOTSUPPORTED
     22635:20110920:055427.015 Item [testhost:calculcated.cpuutil] error: Invalid first parameter in function [last("system.cpu.util[,idle,avg1]")]
  • richlv
    Senior Member
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Oct 2005
    • 3112

    #2
    my calculated items seem to work. does item with a key "system.cpu.util[,idle,avg1]" exist on that host and is it receiving values ?
    Zabbix 3.0 Network Monitoring book

    Comment

    • bcrowder
      Junior Member
      • Sep 2011
      • 10

      #3
      yes, the item exists and it is receiving values.

      Comment

      • richlv
        Senior Member
        Zabbix Certified Trainer
        Zabbix Certified SpecialistZabbix Certified Professional
        • Oct 2005
        • 3112

        #4
        ok, looks like there indeed was some problem with quoted params in calculated items
        Zabbix 3.0 Network Monitoring book

        Comment

        • bcrowder
          Junior Member
          • Sep 2011
          • 10

          #5
          Thanks, applied the changes from that issue and calculated items are working again

          Comment

          Working...