To get at various hardware sensors like temperatures and voltages, it is typically necessary to install the 'lm-sensors' package. Once the package is installed, sensors can be auto-detected with:
sensors-detect --auto
A variation of that is:
yes | sensors-detect
At the end of the output, this will probably generate an output similar to:
To load everything that is needed, add this to /etc/modules: #----cut here---- # Chip drivers coretemp #----cut here----
'modprobe coretemp' can be used to obtain instant gratification by loading the module interactively, instead of at the next reboot.
On a simple system, some values can be seen:
# 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 Package id 0: +50.0°C (high = +105.0°C, crit = +105.0°C) Core 0: +49.0°C (high = +105.0°C, crit = +105.0°C) Core 1: +48.0°C (high = +105.0°C, crit = +105.0°C)
For obtaining an output suitable for scraping by a check_mk agent, a different format can be emitted:
# sensors -u acpitz-virtual-0 Adapter: Virtual device temp1: temp1_input: 27.800 temp1_crit: 105.000 temp2: temp2_input: 29.800 temp2_crit: 105.000 coretemp-isa-0000 Adapter: ISA adapter Package id 0: temp1_input: 49.000 temp1_max: 105.000 temp1_crit: 105.000 temp1_crit_alarm: 0.000 Core 0: temp2_input: 48.000 temp2_max: 105.000 temp2_crit: 105.000 temp2_crit_alarm: 0.000 Core 1: temp3_input: 48.000 temp3_max: 105.000 temp3_crit: 105.000 temp3_crit_alarm: 0.000
While writing this article, a few interesting web sites were encountered:
- Arch Linux' Sensors Page
- Plugins for Check_MK
- Check_MK plugin: lmsensors: a place to which I need to return and try installing his plugin for more information display in Check_MK.
- Earlier Article I wrote doing something similar but different.
I use an app called 'psensor' for watching system temperatures in a chart form.