check temperature centos

simple dan sering lupa. ngecek suhu ato temperatur server (dibaca: serper), tapi hal ini lumayan penting untuk performansi server (dibaca: serper). Memang suhu AC udah 16º C, tapi kan tetep aja kita harus cek juga kondisi si server (dibaca: serper) gimana sekarang?

yang udah pernah aku coba itu lm_sensor. Tinggal comot packagenya aja dari sini ato bagi yang maniak sama CLI
cekibrott..

[root@my-home ~]# yum install lm_sensors -y

untuk ngeliat nya

[root@my-home ~]# /etc/init.d/lm_sensors status
acpitz-virtual-0
Adapter: Virtual device
temp1:       +26.8°C  (crit = +100.0°C)                  
temp2:        +0.0°C  (crit = +100.0°C)

Tips in real world!
Kadang-kadang pas kita nginstall si lm-sensor mungkin dia gk bisa autodetec sensor yang ada di PC server (dibaca:serper) atau mungkin harus kenalan dulu :D.
for ex:

[root@jos ~]# /etc/init.d/lm_sensors status
No sensors found!
Make sure you loaded all the kernel drivers you need.
Try sensors-detect to find out which these are.

klo muncul penampakan seperti diatas. Jadi harus ada sedikit ritual yang harus ditempuh *bakar rokok bukan menyan*.

[root@jos ~]# sensors-detect 
# sensors-detect revision 1.1
# System: Gigabyte Technology Co., Ltd. G41MT-ES2L

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): y

Aku gk bilang tekan “yes” terus, tapi baca apa yang tertulis. Karena penyakit semua manusia adalah malas ngebaca. Tapi aku kasi sedikit cluenya aja, tekan “y” aja gpp kok. Server(dibaca: serper) gk akan rusak kok.
Trus di akhir ritual nanti ada tulisan

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

Sekali lagi, tolong dibaca apa yang tertulis ya.
Pls, JANGAN MALAS (dibaca: kek aku)!!!

At the end 😀

[root@jos ~]# /etc/init.d/lm_sensors status
coretemp-isa-0000
Adapter: ISA adapter
Core 0:      +38.0°C  (high = +74.0°C, crit = +100.0°C)  
Core 1:      +35.0°C  (high = +74.0°C, crit = +100.0°C)  
Core 2:      +38.0°C  (high = +74.0°C, crit = +100.0°C)  
Core 3:      +39.0°C  (high = +74.0°C, crit = +100.0°C)  

it8718-isa-0290
Adapter: ISA adapter
in0:         +1.23 V  (min =  +0.00 V, max =  +4.08 V)   
in1:         +1.50 V  (min =  +0.00 V, max =  +4.08 V)   
in2:         +3.30 V  (min =  +0.00 V, max =  +4.08 V)   
in3:         +3.02 V  (min =  +0.00 V, max =  +4.08 V)   
in4:         +0.77 V  (min =  +0.00 V, max =  +2.10 V)   
in5:         +4.08 V  (min =  +0.00 V, max =  +4.08 V)   ALARM
in6:         +4.08 V  (min =  +0.00 V, max =  +4.08 V)   ALARM
in7:         +3.02 V  (min =  +0.00 V, max =  +4.08 V)   
Vbat:        +3.20 V
fan1:       1271 RPM  (min =    0 RPM)
fan2:          0 RPM  (min =    0 RPM)
temp1:       -55.0°C  (low  = +127.0°C, high = +127.0°C)  sensor = thermistor
temp2:        -2.0°C  (low  = +127.0°C, high = +127.0°C)  sensor = thermistor
temp3:       +26.0°C  (low  = +127.0°C, high = +127.0°C)  sensor = thermal diode
cpu0_vid:   +3.300 V

Leave a Reply

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

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>