tigerblue77 / Dell_iDRAC_fan_controller_Docker

Docker image to control your Dell PowerEdge fans via IPMI
237 stars 57 forks source link

Change CPU_TEMPERATURE_TRESHOLD default value to "high" value returned by "lm-sensors" utility #26

Open tigerblue77 opened 2 years ago

tigerblue77 commented 2 years ago
# apt install -y lm-sensors
# sensors
coretemp-isa-0000
Adapter: ISA adapter
Package id 0:  +45.0°C  (high = +62.0°C, crit = +72.0°C)
Core 0:        +44.0°C  (high = +62.0°C, crit = +72.0°C)
Core 1:        +44.0°C  (high = +62.0°C, crit = +72.0°C)
Core 2:        +44.0°C  (high = +62.0°C, crit = +72.0°C)
Core 3:        +44.0°C  (high = +62.0°C, crit = +72.0°C)
Core 4:        +44.0°C  (high = +62.0°C, crit = +72.0°C)
Core 5:        +44.0°C  (high = +62.0°C, crit = +72.0°C)

coretemp-isa-0001
Adapter: ISA adapter
Package id 1:  +40.0°C  (high = +62.0°C, crit = +72.0°C)
Core 0:        +36.0°C  (high = +62.0°C, crit = +72.0°C)
Core 1:        +39.0°C  (high = +62.0°C, crit = +72.0°C)
Core 2:        +40.0°C  (high = +62.0°C, crit = +72.0°C)
Core 3:        +38.0°C  (high = +62.0°C, crit = +72.0°C)
Core 4:        +37.0°C  (high = +62.0°C, crit = +72.0°C)
Core 5:        +36.0°C  (high = +62.0°C, crit = +72.0°C)
jamesyale commented 3 months ago

It would be great if sensors could be used as the source for the CPU temperature too, older iDRAC accept the fan speed control but aren't able to respond to the commands to get the CPU temperatures:

30-05-2024 15:20:16    0°C    0°C  User static fan control profile (20%)°C  Disabled°C                                         -
./Dell_iDRAC_fan_controller.sh: line 94: [: -gt: unary operator expected
Unable to send RAW command (channel=0x0 netfn=0x30 lun=0x0 cmd=0x30 rsp=0xcc): Invalid data field in request
Unable to send RAW command (channel=0x0 netfn=0x30 lun=0x0 cmd=0xce rsp=0xc1): Invalid command
./Dell_iDRAC_fan_controller.sh: line 159: printf: -: invalid number
./Dell_iDRAC_fan_controller.sh: line 159: printf: -: invalid number

Thanks for the great utility 👍

tigerblue77 commented 3 months ago

@jamesyale, thanks for your interest, feel free to contribute ! :)