summaryrefslogtreecommitdiffstats
path: root/monitor/example
diff options
context:
space:
mode:
authorMatt Spinler <spinler@us.ibm.com>2017-04-28 15:27:43 -0500
committerMatt Spinler <spinler@us.ibm.com>2017-05-11 13:52:50 -0500
commit14321846e57f483f472590b1c5fe35891511312f (patch)
tree2066aec0f2c8d7ef4a2af2962ec289e582df404e /monitor/example
parent85be2e70b6ab28dd01638f115cd7cc4f1beda8da (diff)
downloadphosphor-fan-presence-14321846e57f483f472590b1c5fe35891511312f.tar.gz
phosphor-fan-presence-14321846e57f483f472590b1c5fe35891511312f.zip
Generate data from yaml during build
Run the python script to generate fan_zone_defs.cpp Change-Id: I242aa4246a277509ddbcf1c62fec96782a48b37b Signed-off-by: Matt Spinler <spinler@us.ibm.com>
Diffstat (limited to 'monitor/example')
-rw-r--r--monitor/example/monitor.yaml35
1 files changed, 35 insertions, 0 deletions
diff --git a/monitor/example/monitor.yaml b/monitor/example/monitor.yaml
new file mode 100644
index 0000000..b3dd306
--- /dev/null
+++ b/monitor/example/monitor.yaml
@@ -0,0 +1,35 @@
+#Example fan monitor definitions for phosphor-fan-monitor
+
+#List the fans that need to be monitored, along with some
+#properties that define how much slack is allowed in the actual
+#tach value as compared to the target tach value.
+
+#- inventory:
+# [The system inventory location for the fan]
+# allowed_out_of_range_time:
+# [Time (in secs) actual speed can be outside of deviation of
+# target speed]
+# deviation:
+# [Percentage that actual speed must be within target speed]
+# num_sensors_nonfunc_for_fan_nonfunc:
+# [How many sensors on the fan must be faulted before fan
+# will be considered faulted]
+# sensors: [array of speed sensors for the fan]
+# - name [The name of the fan sensor]
+# has_target [true|false If this sensor has a Target property for
+# setting a fan speed (otherwise just for reads)]
+
+#The code uses these parameters as follows:
+# After a speed reading of a sensor is outside of the allowed deviation of
+# the target speed for the allowed out of range time, if at least
+# num_sensors_nonfunc_for_fan_nonfunc sensors meet this condition,
+# the fan will be set to nonfunctional in the inventory.
+
+#Example entries for 1 fan system:
+# - inventory: /system/chassis/motherboard/fan0
+# allowed_out_of_range_time: 15
+# deviation: 15
+# num_sensors_nonfunc_for_fan_nonfunc: 1
+# sensors:
+# - name: fan0
+# has_target: true
OpenPOWER on IntegriCloud