themactech
2012-11-15 21:49:02 UTC
themactech [http://community.zenoss.org/people/themactech] created the discussion
"Include datapoint value in transform?"
To view the discussion, visit: http://community.zenoss.org/message/69961#69961
--------------------------------------------------------------
I have a temperature sensor that sends the exact same trap whether the temperature went above the top threshold or under the low threshold. I want to differentiate between the two. Now the trap includes the current temp that set of the trap, and I am getting the top and bottom threshold values via a command datasource (it's not available over SNMP). I store the Threshold values as TempHigh and TempLow data points within my command datasource, and I add them to the temperature graph.
How can I reference the TempHigh or TempLow data points from my command datasource within my transform so I can compare with the current temp that triggered the trap so I can change the summary to reflect if the top or bottom threshold has been broken?
Here is what I am looking to do in a flowchart way
-Receive trap
    -Transform
         -Put in correct event class
         -Get current temperature that triggered trap ** this I know how to do
         -If current temp > Top threshold ** <- this is the value I need to pull and don't know how **
              set summary to : High temperature threshold exceeded with (current temp value)
          else
              set summary to : Low temperature threshold exceeded with (current temp value)
Thanks
Manuel
--------------------------------------------------------------
Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/69961#69961]
Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
"Include datapoint value in transform?"
To view the discussion, visit: http://community.zenoss.org/message/69961#69961
--------------------------------------------------------------
I have a temperature sensor that sends the exact same trap whether the temperature went above the top threshold or under the low threshold. I want to differentiate between the two. Now the trap includes the current temp that set of the trap, and I am getting the top and bottom threshold values via a command datasource (it's not available over SNMP). I store the Threshold values as TempHigh and TempLow data points within my command datasource, and I add them to the temperature graph.
How can I reference the TempHigh or TempLow data points from my command datasource within my transform so I can compare with the current temp that triggered the trap so I can change the summary to reflect if the top or bottom threshold has been broken?
Here is what I am looking to do in a flowchart way
-Receive trap
    -Transform
         -Put in correct event class
         -Get current temperature that triggered trap ** this I know how to do
         -If current temp > Top threshold ** <- this is the value I need to pull and don't know how **
              set summary to : High temperature threshold exceeded with (current temp value)
          else
              set summary to : Low temperature threshold exceeded with (current temp value)
Thanks
Manuel
--------------------------------------------------------------
Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/69961#69961]
Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]