Ad Widget

Collapse

Dealing with screwy boolean values

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • stewarc
    Junior Member
    • Dec 2015
    • 1

    #1

    Dealing with screwy boolean values

    I'm hoping the solution to this problem is simple and I'll just smack my forehead when someone tells me, but it eludes me up to this point.

    I have Liebert HVAC units in my server rooms, and have the intellislot cards from them configured to answer SNMP requests. I have great graphs of temperature and humidity, but they use messed up boolean numbers for when the unit is cooling or humidifying. The requests provide an integer value of 2 when "off" and an integer value of 1 when "on." I would like to have a graph that shows when the units run in relation to temperature or humidity, but it's counter-intuitive to have "up" on the graph as off and "down" as running.

    If Liebert had used 0 for off and 1 for on like everyone else in the known universe, it would be easy, but alas. Does anyone have any recommendations on how to solve this?

    Thanks in advance!
Working...