Networking

Unix and Linux network configuration. Multiple network interfaces. Bridged NICs. High-availability network configurations.

Applications

Reviews of latest Unix and Linux software. Helpful tips for application support admins. Automating application support.

Data

Disk partitioning, filesystems, directories, and files. Volume management, logical volumes, HA filesystems. Backups and disaster recovery.

Monitoring

Distributed server monitoring. Server performance and capacity planning. Monitoring applications, network status and user activity.

Commands & Shells

Cool Unix shell commands and options. Command-line tools and application. Things every Unix sysadmin needs to know.

Home » Hardware

Taking Linux Temperature

Submitted by on December 14, 2015 – 12:21 am

Just some notes on setting up temperature monitoring and alerting on CentOS/RHEL running on HP ProLiant. The first step is to install lm_sensors:

yum -y install lm_sensors
sensors-detect
sensors

Now we need to install hddtemp package:
yum -y install hddtemp
for i in `fdisk -l 2>/dev/null | egrep -o "/dev/sd[a-z]"` ; do hddtemp $i ; done

Enable HP software delivery repo by following these instructions. The basic process goes something like this:
rpm --import http://downloads.linux.hpe.com/SDR/hpPublicKey1024.pub
rpm --import http://downloads.linux.hpe.com/SDR/hpPublicKey2048.pub
rpm --import http://downloads.linux.hpe.com/SDR/hpPublicKey2048_key1.pub

cat << EOF > /etc/yum.repos.d/mcp.repo
[mcp]
name=Management Component Pack
baseurl=http://downloads.linux.hpe.com/repo/mcp/centos/6.5/x86_64/10.10
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/GPG-KEY-mcp
EOF

Make sure to insert the correct flavor, version, arch, and repo rev. Now you can install a couple useful components of HP’s MCP hairball:
yum -y install hp-health hp-snmp-agents hp-ams
chkconfig --list | grep hp
for i in hp-health hp-snmp-agents hp-ams ; do service $i status ; done

To get power supply status, fan speed, and temperature readings:
hplog -p -f -t

 

Print Friendly, PDF & Email

Leave a Reply