diff --git a/confluent_client/bin/nodesensors b/confluent_client/bin/nodesensors index 60e69cac..58b1281b 100755 --- a/confluent_client/bin/nodesensors +++ b/confluent_client/bin/nodesensors @@ -36,6 +36,7 @@ import confluent.client as client sensorcollections = { 'all': 'sensors/hardware/all/all', + 'energy': 'sensors/hardware/energy/all', 'temperature': 'sensors/hardware/temperature/all', 'temp': 'sensors/hardware/temperature/all', 'power': 'sensors/hardware/power/all', diff --git a/confluent_server/confluent/core.py b/confluent_server/confluent/core.py index d6858ef9..2b523c9b 100644 --- a/confluent_server/confluent/core.py +++ b/confluent_server/confluent/core.py @@ -257,6 +257,10 @@ def _init_core(): 'pluginattrs': ['hardwaremanagement.method'], 'default': 'ipmi', }), + 'energy': PluginCollection({ + 'pluginattrs': ['hardwaremanagement.method'], + 'default': 'ipmi', + }), 'temperature': PluginCollection({ 'pluginattrs': ['hardwaremanagement.method'], 'default': 'ipmi', diff --git a/confluent_server/confluent/plugins/hardwaremanagement/ipmi.py b/confluent_server/confluent/plugins/hardwaremanagement/ipmi.py index eca4bbd0..b6e2e109 100644 --- a/confluent_server/confluent/plugins/hardwaremanagement/ipmi.py +++ b/confluent_server/confluent/plugins/hardwaremanagement/ipmi.py @@ -69,7 +69,8 @@ _ipmiwaiters = [] sensor_categories = { 'temperature': frozenset(['Temperature']), - 'power': frozenset(['Power', 'Current', 'Battery']), + 'energy': frozenset(['Energy']), + 'power': frozenset(['Power', 'Current']), 'fans': frozenset(['Fan', 'Cooling Device']), }