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>
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 6458836..df51c66 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":