by lik » Thu Oct 25, 2012 9:20 pm

Adaptec AAC RAID via aaccli or afacli or arcconf

Adaptec AAC RAID via aaccli or afacli or arcconf

AIX software RAID via lsvg

HP/Compaq Smart Array via cciss_vol_status (hpsa supported too)

HP Smart Array Controllers and MSA Controllers via hpacucli and hpssacli

HP Smart Array (MSA1500) via serial line

Linux 3ware SATA RAID via tw_cli

Linux Device Mapper RAID via dmraid

Linux DPT/I2O hardware RAID controllers via /proc/scsi/dpt_i2o

Linux GDTH hardware RAID controllers via /proc/scsi/gdth

Linux LSI MegaRaid hardware RAID via CmdTool2

Linux LSI MegaRaid hardware RAID via megarc

Linux LSI MegaRaid hardware RAID via /proc/megaraid

Linux MegaIDE hardware RAID controllers via /proc/megaide

Linux MPT hardware RAID via mpt-status

Linux software RAID (md) via /proc/mdstat

LSI Logic MegaRAID SAS series via MegaCli

LSI MegaRaid via lsraid

Serveraid IPS via ipssend

Solaris software RAID via metastat

Code: Select all wget https://github.com/glensc/nagios-plugin-check_raid/releases/download/4.0.0/check_raid.pl -O check_raid

chmod +x check_raid



/etc/snmp/snmpd.local.conf

Code: Select all #EXEC

exec check_raid /scripts/check_raid



Code: Select all # snmpwalk -c public -v2c server.example.com 1.3.6.1.4.1.2021.8

UCD-SNMP-MIB::extIndex.1 = INTEGER: 1

UCD-SNMP-MIB::extNames.1 = STRING: check_raid

UCD-SNMP-MIB::extCommand.1 = STRING: /scripts/check_raid

UCD-SNMP-MIB::extResult.1 = INTEGER: 0

UCD-SNMP-MIB::extOutput.1 = STRING: OK: 3ware:[c0(9650SE-4LPML): u0:OK, (disks: p0:OK p1:OK p2:OK p3:OK)]

UCD-SNMP-MIB::extErrFix.1 = INTEGER: 0

UCD-SNMP-MIB::extErrFixCmd.1 = STRING:

This plugin checks all RAID volumes (hardware and software) that can be identified.Supported RAIDs that can be checked:You need to install corresponding RAID management utilities on the server for the correct work with hardware RAID controllers.Download plugin:Sample plugin output:Next step is to add custom EXEC section into SNMPd configuration on the server. It will allow us to retrieve plugin output remotely via SNMP protocol.We can add it into default configuration file (/etc/snmp/snmpd.conf) or use additional configuration file () which is also parsed by default:Restart SNMPD to apply configuration and query check_raid plugin remotely:Finally, you can integrate it as Nagios check using convenient for you method (for example with the help of 'retrieve custom snmp' plugin).