System temperatures input plugin not load

Hi,

luci-app statistics is running very well.
But not load thermal!

Sun Apr 27 15:21:00 2025 daemon.err collectd[16540]: plugin_load: plugin "cpu" successfully loaded.
Sun Apr 27 15:21:00 2025 daemon.err collectd[16540]: plugin_load: plugin "interface" successfully loaded.
Sun Apr 27 15:21:00 2025 daemon.err collectd[16540]: plugin_load: plugin "iwinfo" successfully loaded.
Sun Apr 27 15:21:00 2025 daemon.err collectd[16540]: plugin_load: plugin "load" successfully loaded.
Sun Apr 27 15:21:00 2025 daemon.err collectd[16540]: plugin_load: plugin "memory" successfully loaded.
Sun Apr 27 15:21:00 2025 daemon.err collectd[16540]: plugin_load: plugin "rrdtool" successfully loaded.
Sun Apr 27 15:21:00 2025 daemon.err collectd[16540]: rrdtool plugin: RRASingle = true: creating only AVERAGE RRAs
Sun Apr 27 15:21:00 2025 daemon.err collectd[16540]: plugin_load: plugin "sensors" successfully loaded.
Sun Apr 27 15:21:00 2025 daemon.info collectd[16540]: plugin_load: plugin "syslog" successfully loaded.

and the luci_statistics

config statistics 'collectd_thermal'
        option enable '1'
        list Device 'cooling_device0'
        list Device 'cooling_device1'

Thx for help

Have you installed collectd-mod-thermal ?

Sure and

collectd-mod-cpu	5.12.0-r53	~4.76 KiB	CPU input plugin	
collectd-mod-interface	5.12.0-r53	~4.16 KiB	network interfaces input plugin	
collectd-mod-iwinfo	5.12.0-r53	~4.29 KiB	libiwinfo wireless statistics plugin	
collectd-mod-load	5.12.0-r53	~2.67 KiB	system load input plugin	
collectd-mod-memory	5.12.0-r53	~3.48 KiB	physical memory usage input plugin	
collectd-mod-network	5.12.0-r53	~15.26 KiB	network input/output plugin	
collectd-mod-rrdtool	5.12.0-r53	~12.08 KiB	RRDtool output plugin	
collectd-mod-sensors	5.12.0-r53	~4.70 KiB	lm_sensors input plugin	
collectd-mod-syslog	5.12.0-r53	~2.92 KiB	syslog output plugin	
collectd-mod-thermal	5.12.0-r53	~4.63 KiB	system temperatures input plugin

I think there is a bug in

thermal.so

Thx
1 Like

Those are cooling devices, not temperature sensors. You're looking for devices that start with thermal_zone.

# find / -iname "thermal_zone*"

Or leave the list empty to get statistics of all available (regular system) thermal sensors. For thermal sensors provided by lm_sensors, you're looking at the "sensors" section of collectd, not at "thermal".

4 Likes

See the on-screen notice when you config the sensor:
The thermal plugin will monitor temperature of the system. Data is typically read from /sys/class/thermal//temp ( '' denotes the thermal device to be read, e.g. thermal_zone1 )

1 Like

As mentioned by takimata, in case no thermal_zone info is found in /sys/class/thermal, see if the Sensors plugin exposes temperatures. (some devices work out of the box with Thermal plugin, whereas for others you need the Sensors plugin)

Bit of background info:
The Thermal plugin relies on sysfs or procfs info.
The Sensors plugin relies on lm-sensors info - i.e. provided via I2C bus - and exposes sensor info like voltage, fanspeed and temperature. However, as far as I know, only thermal info is available in luci stats.

1 Like

Some ideas for you:

The thermal sensors in chips varies a lot. There may be several temperature sensors built-in, or none.
Check the contents in /sys/class/thermal dir to see what your chip has.
E.g. MT6000 and DL-WRX36:

root@router6000:~# ls /sys/class/thermal/
cooling_device0  cooling_device1  thermal_zone0
root@router5:~# ls /sys/class/thermal/
cooling_device0  thermal_zone1    thermal_zone3    thermal_zone7
cooling_device1  thermal_zone10   thermal_zone4    thermal_zone8
cooling_device2  thermal_zone11   thermal_zone5    thermal_zone9
thermal_zone0    thermal_zone2    thermal_zone6

root@router5:~# cat /sys/class/thermal/thermal_zone0/temp
46400

(= 46,4 'C current temperature)

Alternatively, try sensors plugin, like already suggested. Install collectd-mod-sensors and also lm-sensors package to get the user-space sensor detection tools.

There is also support for others like humidity, voltage, current, power, fanspeed:

Note that sensors plugin based graphs are in a separate section, not in Thermal

1 Like

Thanks for the Infos,

maybe the router (AVM 4040) can't do thermal_zone.
I've got only

root@OpenWrt:/sys/class/thermal# ls -la
drwxr-xr-x    2 root     root             0 Apr 28 06:13 .
drwxr-xr-x   42 root     root             0 Apr 28 06:12 ..
lrwxrwxrwx    1 root     root             0 Apr 28 06:13 cooling_device0 -> ../../devices/virtual/thermal/cooling_device0
lrwxrwxrwx    1 root     root             0 Apr 28 06:13 cooling_device1 -> ../../devices/virtual/thermal/cooling_device1


not a thermal_zone.
I've got

config statistics 'collectd_sensors'
        option enable '1'
        list Sensor 'ath10k_hwmon-isa-a000000/temperature-temp1'
        list Sensor 'ath10k_hwmon-isa-a800000/temperature-temp1'

with graph
Thx

That would be the temperature of your wifi chip. A good compromise since it's sitting within its single-chip SoC, it should give you at least a ballpark number.

That being said, that's all it is, a ballpark number. Besides the joy of collecting pretty numbers there is little meaningful and actionable information in the temperature of a "plastic fantastic" router's SoC. These SoCs are designed to reliably withstand their own heat ... and it's not like you can do a whole lot to mitigate it.

2 Likes

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.