Ad Widget

Collapse

Calculated items to get average temperature

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • lukus
    Junior Member
    • May 2008
    • 9

    #1

    Calculated items to get average temperature

    I've created a template to access temperature sensors on my Mac OS X Servers, and am now able to track about a dozen temperature measurements.

    This is kind of a lot of data when all I want to know is "how hot is the ambient air around the server" so I would like to make a calculated item that takes an average of 4 ambient temperature sensors. I've created a calculated item with this expression (broken on to multiple lines for clarity):

    Code:
    (
    last("TemperatureChunnelAmbientLeft")+ 
    last("TemperatureChunnelAmbientRight")+ 
    last("TemperaturePSU1InletAmbient")+ 
    last("TemperaturePSU2InletAmbient")
    )/4
    This works well on servers that have all 4 sensors. However, some servers only have a single power supply, so they're missing data for TemperaturePSU2InletAmbient.

    Is there a way to structure this so that any missing items are just omitted from the average?
  • Alexei
    Founder, CEO
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Sep 2004
    • 5654

    #2
    No, it is not possible. Zabbix cannot calculate expression if data is missing for one of the items. Perhaps we should introduce a new function to deal with this situation.
    Alexei Vladishev
    Creator of Zabbix, Product manager
    New York | Tokyo | Riga
    My Twitter

    Comment

    • zabbix_zen
      Senior Member
      • Jul 2009
      • 426

      #3
      Hi.

      Was there any progress on this?
      It's a little confining to trust all items are successfully received by Zabbix.
      Is there something on the Roadmap so that items get this freely evaluated by the available functions?

      Comment

      • fmtaylor2
        Member
        • May 2006
        • 66

        #4
        Bump

        Any progress on this yet?

        Comment

        Working...