Proxmox and HP Proliant DL380 G5 raid monitoring

Proxmox and HP Proliant DL380 G5 raid monitoring

Hello Guys,

was hesitating for a long time to switch my HP Proliant DL380 G5 from Hyper-V 2008 free to proxmox.
My fears was essentially based on the fact that there is no easy way to monitor hardward failure.

After some research, i can now at least monitor my raid array that is essential.

So on promox host, you have to install some piece of software, all mentionned here are simple to do.

First configure postfix thus you will be able to send email from your proxmox server:

dpkg-reconfigure postfix

Say that you are {{internet site}}, leave other option by default, use only ipv4 if no ipv6 used

Then install a cli mail client to make some test:

apt-get install heirloom-mailx

The send yourself a mail:


Fill subject , write some stuff then finish by a point “.” and , check your mailbox

OK, now we need to install a piece of software to monitor our HP raid array.
For that we use stuff available on this site:

But to resume, we need to do:

edit your /etc/apt/source.list and add their repository:

deb wheezy main

Add their GPG key:

wget -O – | sudo apt-key add –

then update,

apt-get update

then install needed package based on your need (

for my part, on the DL380 G5 i have install:

apt-get install cciss-vol-status

apt-get install hpacucli

OK right, now you are able to check raid status:

cciss_vol_status /dev/cciss/c*d0

So now, based on some grep command, we can make a script to send email if an array has not the status “OK”
Here is my script

# Check status of RAID volumes on HP Smart Array controllers.
statusraw=`/usr/sbin/cciss_vol_status /dev/cciss/c*d0`
statusstate=`echo "$statusraw" | grep "status: " | grep -v -c "status: OK"`
if [ "$statusstate" != "0" ] then
echo -e "${statusraw}" | mailx -s "RAID Alert: Server ($(hostname)) Drive Failure!"
echo -e "${statusraw}"
echo "Email alert sent!"
echo "No raid error detected"

Just cron this has you want and you are now OK

Futur when i have time:
* modify the script to receive mail 1 time if already send

Télémaintenance OLD
Télémaintenance permanente OLD
Full installer

No Comments Yet.

Leave a reply

Sign in
Forgot password?
Sign up

(*) Required fields

I agree with OptimaSales Terms & Privacy Policy

Embed your Youtube channel in your blog posts