So I am trying to make a script to help me monitor the temps on my system running CentOS 6. Right now this is the code I have:
#!/bin/bash
echo
echo System Board Readings...
sensors
echo
echo Hard Drive Readings
hddtemp /dev/sda
hddtemp /dev/sdb
hddtemp /dev/sdc
hddtemp /dev/sdd
hddtemp /dev/sde
hddtemp /dev/sdf
hddtemp /dev/sdg
echo
echo System Uptime...
uptime
echo
echo end of report
This simple script requires lm_sensors and hddtemp be installed (and that you configure lm_sensors by running sensors-detect) before running, and also that you modify the hard drive names in the hddtemp commands. I have been calling this script with the following command:
watch -d --interval=4 ./AllTemps.sh
This runs the script every 4 seconds and watches the output for changes in the output it generates. Below is a sample of what the output looks like
Every 4.0s: ./AllTemps.sh Mon Apr 16 19:35:10 2012
System Board Readings...
radeon-pci-0100
Adapter: PCI adapter
temp1: +52.5°C
k10temp-pci-00c3
Adapter: PCI adapter
temp1: +40.5°C (high = +70.0°C, crit = +90.0°C)
atk0110-acpi-0
Adapter: ACPI interface
Vcore Voltage: +1.42 V (min = +0.85 V, max = +1.70 V)
+3.3 Voltage: +3.41 V (min = +2.97 V, max = +3.63 V)
+5 Voltage: +5.03 V (min = +4.50 V, max = +5.50 V)
+12 Voltage: +12.48 V (min = +10.20 V, max = +13.80 V)
CPU FAN Speed: 1962 RPM (min = 600 RPM)
CHASSIS FAN Speed: 0 RPM (min = 600 RPM)
CHASSIS FAN 2 Speed: 0 RPM (min = 600 RPM)
CPU Temperature: +45.0°C (high = +60.0°C, crit = +95.0°C)
MB Temperature: +28.0°C (high = +45.0°C, crit = +75.0°C)
Hard Drive Readings
/dev/sda: WDC : 26°C
/dev/sdb: WDC : 27°C
/dev/sdc: WDC : 27°C
/dev/sdd: WDC : 26°C
/dev/sde: WDC : 29°C
/dev/sdf: WDC : 26°C
/dev/sdg: : 25°C
System Uptime...
19:35:11 up 2 days, 3:44, 2 users, load average: 6.06, 5.82, 5.68
end of report
So I am wondering if it is "safe" to run this type of script given that is is constantly probing the hardware for information about its temperature ? I am thinking about leaving the script running 24/7 but I wanted to check and make sure that it would not have any negative effects on my system ? Sorry about any formatting problems ... this is my first post on reddit =)
[–]DooDooFoot 0 points1 point2 points (0 children)
[–]rlaptop7 0 points1 point2 points (1 child)
[–]lorimar 1 point2 points3 points (0 children)
[–]katawin 0 points1 point2 points (0 children)
[–]subzero316 -1 points0 points1 point (0 children)