My biggest concern relocating my server to the garage was dust clogging up the fans. The server has two fans, one CPU and one mounted at the rear of the case.
The best guide for reading sensor data I have found for Ubuntu is Sensors How To. This guides you through setting up the command sensors to access the hardware sensors located on the motherboard.
I am using an ASUS main board and by default sensors wont pick up the fans attached to the board. A bit of Googling found the solution installing the correct kernel module.
$ sudo modprobe nct6775
Make sure you add nct6775 to /etc/modules to ensure it’s loaded at boot time.
sensors command now gives the following output:
$ sensors acpitz-virtual-0 Adapter: Virtual device temp1: +27.8°C (crit = +105.0°C) temp2: +29.8°C (crit = +105.0°C) coretemp-isa-0000 Adapter: ISA adapter Physical id 0: +16.0°C (high = +80.0°C, crit = +100.0°C) Core 0: +15.0°C (high = +80.0°C, crit = +100.0°C) Core 1: +16.0°C (high = +80.0°C, crit = +100.0°C) nct6791-isa-0290 Adapter: ISA adapter in0: +0.88 V (min = +0.00 V, max = +1.74 V) in1: +1.01 V (min = +0.00 V, max = +0.00 V) ALARM in2: +3.31 V (min = +0.00 V, max = +0.00 V) ALARM in3: +3.30 V (min = +0.00 V, max = +0.00 V) ALARM in4: +1.01 V (min = +0.00 V, max = +0.00 V) ALARM in5: +2.02 V (min = +0.00 V, max = +0.00 V) ALARM in6: +0.64 V (min = +0.00 V, max = +0.00 V) ALARM in7: +3.44 V (min = +0.00 V, max = +0.00 V) ALARM in8: +3.25 V (min = +0.00 V, max = +0.00 V) ALARM in9: +1.01 V (min = +0.00 V, max = +0.00 V) ALARM in10: +0.21 V (min = +0.00 V, max = +0.00 V) ALARM in11: +0.16 V (min = +0.00 V, max = +0.00 V) ALARM in12: +1.01 V (min = +0.00 V, max = +0.00 V) ALARM in13: +1.01 V (min = +0.00 V, max = +0.00 V) ALARM in14: +0.20 V (min = +0.00 V, max = +0.00 V) ALARM fan1: 0 RPM (min = 0 RPM) fan2: 1008 RPM (min = 0 RPM) fan3: 0 RPM (min = 0 RPM) fan4: 0 RPM (min = 0 RPM) fan5: 0 RPM (min = 0 RPM) SYSTIN: +9.0°C (high = +0.0°C, hyst = +0.0°C) ALARM sensor = thermistor CPUTIN: +11.5°C (high = +80.0°C, hyst = +75.0°C) sensor = thermistor AUXTIN0: +47.0°C sensor = thermistor AUXTIN1: +111.0°C sensor = thermistor AUXTIN2: +109.0°C sensor = thermistor AUXTIN3: +110.0°C sensor = thermistor PECI Agent 0: +15.5°C PCH_CHIP_CPU_MAX_TEMP: +0.0°C PCH_CHIP_TEMP: +0.0°C PCH_CPU_TEMP: +0.0°C intrusion0: ALARM intrusion1: ALARM beep_enable: disabled
Only the case fan is reporting, it’s fan2 on the list. I’m not sure why only one fan is reported, still better than none…
Using the script at the bottom I add the data into an InfluxDB database and use Grafana to view it. Below is a sample graph:
This is some basic graphing that allows me to track any changes that might indicate a problem with the fan.
Below is a script to output the fan data from the above output: