mathz.nu

2011/01/18

Software RAID monitoring in Zabbix

Filed under: Server — Mathz @ 21:25

To monitor software RAID in Zabbix 1.8 you need to make following changes in Zabbix:

in /etc/zabbix/zabbix-agent*.conf on client

add in the end of the file:
#CONTROLLO RAID
UserParameter=custom.mdstat,/bin/cat /proc/mdstat | grep -c _

You need to restart zabbix Agent
sudo /etc/init.d/zabbix-agent restart

On the Zabbix server add to the Linux Template:

Items:
Host: Template_Linux
Description: MDStat
Type: Zabbix_agent
Key: custom.mdstat
Applications: Availability, Filesystem

Trigger:
Name: RAID on {HOSTNAME}
Expression: {Template_Linux:custom.mdstat.last(0)}#0

This is tested on Ubuntu servers with:
RAID 1 with 2 disks
RAID 5 with 4 and 6 disks
RAID 6 with 8 disks

1 Comment »

  1. Thanks for some quality points there. I am kind of new to online , so I printed this off to put in my file, any better way to go about keeping track of it then printing?

    Comment by incorporation — 2011/01/22 @ 05:46

RSS feed for comments on this post. TrackBack URL

Leave a comment

Powered by WordPress