HP ProLiant Fan & Temperature Monitoring

If you have the hpasmcli command installed on your ProLiant server (available from the HP ProLiant Support Pack), you can display the speed of fans and the temperature of different parts of your server and use collectd to store the values. The following has been tested on a ProLiant ML350 G6 server.

On Debian you can add the following line to eg. /etc/apt/sources.list.d/hp.list and install the hp-health package:

# cat /etc/apt/sources.list.d/hp.list 
deb http://downloads.linux.hp.com/SDR/repo/mcp wheezy/current non-free

# apt-get update
# apt-get install hp-health

Example output of running the hpasmcli command directly (to verify that it actually works):

# /sbin/hpasmcli -s "show temp"

Sensor   Location              Temp       Threshold
------   --------              ----       ---------
#1        AMBIENT              26C/78F    42C/107F 
#2        CPU#1                40C/104F   82C/179F 
#3        CPU#2                 -         82C/179F 
#4        MEMORY_BD            37C/98F    87C/188F 
#5        MEMORY_BD            34C/93F    87C/188F 
#6        MEMORY_BD            33C/91F    87C/188F 
#7        MEMORY_BD            33C/91F    87C/188F 

Introduction to Puppet

I have written this introduction to Puppet because I needed to explain how Puppet works. I will try to update it with more information when I have time. I strongly suggest that you read the official Puppet documentation to learn about the language syntax, which is something I don’t explain at all. For people that are used to writing scripts, it should not be a problem to understand what’s going on and learn the syntax while reading.

Definitions:

  • node: a host/server on which you run Puppet
  • agent: the Puppet Agent process that runs on your nodes
  • master: the server on which you run your Puppet Master or the Puppet master process

From What is Puppet

Puppet is IT automation software that helps system administrators manage infrastructure throughout its lifecycle, from provisioning and configuration to orchestration and reporting. Using Puppet, you can easily automate repetitive tasks, quickly deploy critical applications, and proactively manage change, scaling from 10s of servers to 1000s, on-premise or in the cloud.”