summaryrefslogtreecommitdiff
path: root/meta-ibm/recipes-phosphor
diff options
context:
space:
mode:
authorMatt Spinler <spinler@us.ibm.com>2020-11-12 00:36:21 +0300
committerAndrew Geissler <geissonator@yahoo.com>2020-11-18 01:31:51 +0300
commitfe91ec8d385448e4b701658eac3b0750ceccc27a (patch)
treebcf78219c3ee77ef7a39f88747d76f4535592f46 /meta-ibm/recipes-phosphor
parent5a34fb1d226e13b00e42ec181325fcd82ca19d02 (diff)
downloadopenbmc-fe91ec8d385448e4b701658eac3b0750ceccc27a.tar.xz
rainier: Add virtual ambient temp thresholds
The phosphor-virtual-sensor code recently started checking the values of the upper/lower warning/critical thresholds for the virtual sensors and prints to the journal if they are exceeded. If the threshold values to use aren't specified in the JSON file, it will just set them to zero so any nonzero sensor value will trigger the trace. So, even though code will not use the threshold values for the virtual ambient temperature sensor, put some into the JSON anyway that should never be exceeded to avoid these traces. If the temperature does happen to go outside the range of between 0 and 100, then seeing the trace may be interesting anyway. (From meta-ibm rev: 9fdb9598d0eee4d9820962320391bb9f7e4568ea) Signed-off-by: Matt Spinler <spinler@us.ibm.com> Change-Id: I1c6c5f1faaaf58599a3840eed6ec4749a70a1364 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
Diffstat (limited to 'meta-ibm/recipes-phosphor')
-rw-r--r--meta-ibm/recipes-phosphor/sensors/phosphor-virtual-sensor/rainier/virtual_sensor_config.json7
1 files changed, 7 insertions, 0 deletions
diff --git a/meta-ibm/recipes-phosphor/sensors/phosphor-virtual-sensor/rainier/virtual_sensor_config.json b/meta-ibm/recipes-phosphor/sensors/phosphor-virtual-sensor/rainier/virtual_sensor_config.json
index 6458836fd..df51c66ab 100644
--- a/meta-ibm/recipes-phosphor/sensors/phosphor-virtual-sensor/rainier/virtual_sensor_config.json
+++ b/meta-ibm/recipes-phosphor/sensors/phosphor-virtual-sensor/rainier/virtual_sensor_config.json
@@ -5,6 +5,13 @@
"Name": "Ambient_Virtual_Temp",
"SensorType": "temperature"
},
+ "Threshold" :
+ {
+ "CriticalHigh": 100,
+ "CriticalLow": 0,
+ "WarningHigh": 100,
+ "WarningLow": 0
+ },
"Params":
{
"DbusParam":