Install lm_sensors to monitor temperature hardware on CentOS/RHEL

Scenario: Install lm_sensors to monitor hardware temperature CentOS/RHEL

System: CentOS/RHEL 6/7

Install and configure lm_sensors,login as root
# yum install lm_sensors

Configure lm_sensors by answering “yes”
# sensors-detect

Example:

[root@server01 ~]# sensors-detect
# sensors-detect revision 1.1
# System: HP ProLiant DL380 Gen9

This program will help you determine which kernel modules you need
to load to use lm_sensors most effectively. It is generally safe
and recommended to accept the default answers to all questions,
unless you know what you're doing.

Some south bridges, CPUs or memory controllers contain embedded sensors.
Do you want to scan for them? This is totally safe. (YES/no): yes
Silicon Integrated Systems SIS5595... No
VIA VT82C686 Integrated Sensors... No
VIA VT8231 Integrated Sensors... No
AMD K8 thermal sensors... No
AMD Family 11h thermal sensors... No
Intel digital thermal sensor... Success!
 (driver `coretemp')
Intel AMB FB-DIMM thermal sensor... No
VIA C7 thermal and voltage sensors... No

Some Super I/O chips contain embedded sensors. We have to write to
standard I/O ports to probe them. This is usually safe.
Do you want to scan for Super I/O sensors? (YES/no): yes
Probing for Super-I/O at 0x2e/0x2f
Trying family `National Semiconductor'... Yes
Found unknown chip with ID 0x0401
Probing for Super-I/O at 0x4e/0x4f
Trying family `National Semiconductor'... No
Trying family `SMSC'... No
Trying family `VIA/Winbond/Nuvoton/Fintek'... No
Trying family `ITE'... No

Some systems (mainly servers) implement IPMI, a set of common interfaces
through which system health data may be retrieved, amongst other things.
We first try to get the information from SMBIOS. If we don't find it
there, we have to read from arbitrary I/O ports to probe for such
interfaces. This is normally safe. Do you want to scan for IPMI
interfaces? (YES/no): yes
Found `IPMI BMC KCS' at 0xca2... Success!
 (confidence 8, driver `ipmisensors')
	
Some hardware monitoring chips are accessible through the ISA I/O ports.
We have to write to arbitrary I/O ports to probe them. This is usually
safe though. Yes, you do have ISA I/O ports even if you do not have any
ISA slots! Do you want to scan the ISA I/O ports? (YES/no): yes
Probing for `National Semiconductor LM78' at 0x290... No
Probing for `National Semiconductor LM79' at 0x290... No
Probing for `Winbond W83781D' at 0x290... No
Probing for `Winbond W83782D' at 0x290... No

Lastly, we can probe the I2C/SMBus adapters for connected hardware
monitoring devices. This is the most risky part, and while it works
reasonably well on most systems, it has been reported to cause trouble
on some systems.
Do you want to probe the I2C/SMBus adapters now? (YES/no): yes
Found unknown SMBus adapter 8086:8d22 at 0000:00:1f.3.
Sorry, no supported PCI bus adapters found.
Module i2c-dev loaded successfully.

Next adapter: SMBus I801 adapter at 5000 (i2c-0)
Do you want to scan it? (YES/no/selectively): yes
Client found at address 0x28
Probing for `National Semiconductor LM78'... No
Probing for `National Semiconductor LM79'... No
Probing for `National Semiconductor LM80'... No
Probing for `Winbond W83781D'... No
Probing for `Winbond W83782D'... No
Probing for `Winbond W83627HF'... No
Probing for `Winbond W83627EHF'... No
Probing for `Winbond W83627DHG/W83667HG/W83677HG'... No
Probing for `Asus AS99127F (rev.1)'... No
Probing for `Asus AS99127F (rev.2)'... No
Probing for `Asus ASB100 Bach'... No
Probing for `Analog Devices ADM1029'... No
Probing for `ITE IT8712F'... No
Client found at address 0x2a
Probing for `National Semiconductor LM78'... No
Probing for `National Semiconductor LM79'... No
Probing for `National Semiconductor LM80'... No
Probing for `Winbond W83781D'... No
Probing for `Winbond W83782D'... No
Probing for `Winbond W83627HF'... No
Probing for `Winbond W83627EHF'... No
Probing for `Winbond W83627DHG/W83667HG/W83677HG'... No
Probing for `Asus AS99127F (rev.1)'... No
Probing for `Asus AS99127F (rev.2)'... No
Probing for `Asus ASB100 Bach'... No
Probing for `Analog Devices ADM1021'... No
Probing for `Analog Devices ADM1021A/ADM1023'... No
Probing for `Maxim MAX1617'... No
Probing for `Maxim MAX1617A'... No
Probing for `Maxim MAX1668'... No
Probing for `Maxim MAX1805'... No
Probing for `Maxim MAX1989'... No
Probing for `Maxim MAX6655/MAX6656'... No
Probing for `TI THMC10'... No
Probing for `National Semiconductor LM84'... No
Probing for `Genesys Logic GL523SM'... No
Probing for `Onsemi MC1066'... No
Probing for `Maxim MAX1618'... No
Probing for `Maxim MAX1619'... No
Probing for `National Semiconductor LM82/LM83'... No
Probing for `Maxim MAX6654/MAX6690'... No
Probing for `Maxim MAX6680/MAX6681'... No
Probing for `Texas Instruments TMP421'... No
Probing for `National Semiconductor LM95231'... No
Probing for `National Semiconductor LM95241'... No
Probing for `Analog Devices ADM1029'... No
Probing for `ITE IT8712F'... No

Now follows a summary of the probes I have just done.
Just press ENTER to continue:

Driver `coretemp':
 * Chip `Intel digital thermal sensor' (confidence: 9)

Driver `ipmisensors':
 * ISA bus, address 0xca2
 Chip `IPMI BMC KCS' (confidence: 8)

Warning: the required module ipmisensors is not currently installed
on your system. If it is built into the kernel then it's OK.
Otherwise, check http://www.lm-sensors.org/wiki/Devices for
driver availability.

Do you want to overwrite /etc/sysconfig/lm_sensors? (YES/no): yes
Starting lm_sensors: loading module ipmi-si coretemp [ OK ]
Unloading i2c-dev... OK

[root@server01 ~]# 

Type sensors to monitor the hardware temperature
$ sensors

Example:

[root@server01 ~]$ sensors | grep Core
Core 0: +50.0°C (high = +80.0°C, crit = +90.0°C)
Core 1: +49.0°C (high = +80.0°C, crit = +90.0°C)
Core 2: +50.0°C (high = +80.0°C, crit = +90.0°C)
Core 3: +50.0°C (high = +80.0°C, crit = +90.0°C)
Core 4: +51.0°C (high = +80.0°C, crit = +90.0°C)
Core 5: +50.0°C (high = +80.0°C, crit = +90.0°C)
Core 6: +52.0°C (high = +80.0°C, crit = +90.0°C)
Core 7: +50.0°C (high = +80.0°C, crit = +90.0°C)
Core 0: +71.0°C (high = +80.0°C, crit = +90.0°C)
Core 1: +71.0°C (high = +80.0°C, crit = +90.0°C)
Core 2: +71.0°C (high = +80.0°C, crit = +90.0°C)
Core 3: +71.0°C (high = +80.0°C, crit = +90.0°C)
Core 4: +72.0°C (high = +80.0°C, crit = +90.0°C)
Core 5: +71.0°C (high = +80.0°C, crit = +90.0°C)
Core 6: +70.0°C (high = +80.0°C, crit = +90.0°C)
Core 7: +70.0°C (high = +80.0°C, crit = +90.0°C)
[root@server01 ~]$

Leave a Reply

Your email address will not be published. Required fields are marked *