Showing posts with label temperature. Show all posts
Showing posts with label temperature. Show all posts

Tuesday, May 10, 2011

how to monitor temperature every hour (CentOS)

today, i will guide how to monitor your server temparature

1. intall mutt

# yum install mutt
2. create monitor_temp.sh

# vi monitor_temp.sh

type i for insert
sensors | grep Core
hddtemp /dev/sda

type esc and :wq

to quit and save the file

type

3. Create report script
# vi report.sh

sh monitor_temp.sh > data.txt
mutt -s "Report: Temperature report" your@email-server.com < ~/data.txt
again, save the file

test the script by typing

# sh report.sh
if this success, check your email.

make this file executables:
#chmod 755 report.sh

4. create cron job to run every 1 hour

#vi /etc/crontab
* 1 * * * /root/scripts/report.sh

Reference:


monitor cpu temparature


and if you do not have any problem (like me!):
refer this guide how to install coretemp module.

http://www.question-defense.com/2010/03/24/lm_sensors-on-cent-os-5-4-how-to-get-and-install-the-coretemp-module

finally:

coretemp-isa-0000
Adapter: ISA adapter
Core 0: +54°C (high = +100°C)

coretemp-isa-0001
Adapter: ISA adapter
Core 1: +49°C (high = +100°C)

In nicer look:
[root@linux lm_sensors-3.3.0]# sensors |grep "Core"
Core 0: +39°C (high = +100°C)
Core 1: +36°C (high = +100°C)


Related Posts Plugin for WordPress, Blogger...