We have a CheckPoint 26000 appliance and we are trying to use Skyline to monitor some metrics with grafana.
Now we are trying to use the hardware.power_supply.state metric but it doesn't work as expected. To make a test we tried to disconnect one of the three power cables and from cpview (Hardware-Health.Power-Supply window) we see the "Power Supply #1" Down (see attached image).
However, if we run "cpview -m" and we extract the metric hardware.power_supply.state we have this output
{"data":[{"name":"Power Supply #3","value":1},{"name":"Power Supply #2","value":1},{"name":"Power Supply #1","value":1}],"description":"State of reading the power supply data","metric-id":"hardware.power_supply.state","metric-type":"Gauge","metric-unit":"{state}","metric-value-type":"double"}
where all the Power Supply #* fields have the value "1":
name":"Power Supply #1","value":1
name":"Power Supply #2","value":1
name":"Power Supply #3","value":1
With a power cable disconnected we expect a value "0" for the Power Supply #1.
What do you think? Is it correct, is there a bug?
Bye...