ZABBIX Forums  

Go Back   ZABBIX Forums > Zabbix Discussions and Feedback > Zabbix Cookbook

Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 24-05-2011, 15:08
mcree mcree is offline
Junior Member
Join Date: Apr 2008
Posts: 1
Post Monitoring LSI / Symbios MegaRAID SAS raid controller (found in several Dell servers)

Hello fellow zabbixers!

I thought that it would be nice to get notified about raid disk failures by zabbix, so I've put together a small bash script to generate monitoring XML templates for LSI and Symbios MegaRAID controllers using the MegaCli executable downloadable from

You should run the script on the host to be monitored since it only generates template items and notification triggers for existing drives. You must set the path to the MegaCli executable in the header of the script, then run it like:

bash > megaraid_template.xml
On success you should see something like:
+ detecting adapters
+ found 1 adapter(s)
+ examining adapter 0
+ found disk: 32:0
+ found disk: 32:1
+ found disk: 32:2
+ done
And of course the file 'megaraid_template.xml' would contain the template generated for your configuration.

Don't forget to add the following line to your zabbix_agentd.conf and restart your agent:

UserParameter=megaraid[*],sudo $CMD -pdInfo -PhysDrv[$2:$3] -a$1 | grep '$4' | cut -f2 -d':' | cut -b2-
Where $CMD is the path to your copy of MegaCli executable. Also consider that the command above presumes that the user running your agent is permitted to use 'sudo' (eg.: the zabbix user is in the sudoers file).

Erno Rigo
Attached Files
File Type: zip (2.0 KB, 1980 views)
Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT +2. The time now is 15:21.