1#Example fan monitor definitions for phosphor-fan-monitor 2 3#List the fans that need to be monitored, along with some 4#properties that define how much slack is allowed in the actual 5#tach value as compared to the target tach value. 6 7#fans: 8# - inventory: 9# [The system inventory location for the fan] 10# allowed_out_of_range_time: 11# [Time (in secs) actual speed can be outside of deviation of 12# target speed] 13# deviation: 14# [Percentage that actual speed must be within target speed] 15# num_sensors_nonfunc_for_fan_nonfunc: 16# [How many sensors on the fan must be faulted before fan 17# will be considered faulted] 18# sensors: [array of speed sensors for the fan] 19# - name [The name of the fan sensor] 20# has_target [true|false If this sensor has a Target property for 21# setting a fan speed (otherwise just for reads)] 22# target_interface [The fan target interface used by the sensor. 23# Default is "xyz.openbmc_project.Control.FanSpeed"] 24# factor [The factor to multiply with target to calculate the expected 25# fan speed. Default is 1 for fan speed target; 26# Customized value for pwm target] 27# offset [The offset to add to calculate the expected fan speed. 28# Default is 0 for fan speed target; 29# Customized value for pwm target] 30# 31#sensor_trust_groups: 32# - class: [Group class name 33# Available classes: 34# * NonzeroSpeed - Only trust if at least one sensor in the group 35# has a nonzero speed.] 36# sensors: 37# - name [The name of the fan sensor in this group] 38 39#The code uses these parameters as follows: 40# After a speed reading of a sensor is outside of the allowed deviation of 41# the target speed for the allowed out of range time, if at least 42# num_sensors_nonfunc_for_fan_nonfunc sensors meet this condition, 43# the fan will be set to nonfunctional in the inventory. 44# 45# Sensor trust groups are used to specify that the speed values for the 46# sensors in a group cannot be trusted based on some condition, where 47# the condition is based on the class used to implement the group. All 48# sensors in the group go in and out of trust together. This section 49# is optional. 50 51#Example entries for 1 fan system: 52#fans: 53# - inventory: /system/chassis/motherboard/fan0 54# allowed_out_of_range_time: 15 55# deviation: 15 56# num_sensors_nonfunc_for_fan_nonfunc: 1 57# sensors: 58# - name: fan0 59# has_target: true 60#sensor_trust_groups: 61# - class: NonzeroSpeed 62# sensors: 63# - name: fan0_0 64