checkraid

a simple raid checker for Nagios/Icinga/.. ‐ Works with Adaptec, 3ware, lsi, zfs and md

checkraid screenshot  

Download

Feedback

Documentation

NAME

checkraid - a simple raid checker for nagios

VERSION

$Revision: 98 $

SYNOPSIS

checkraid [options]

OPTIONS

  • -c controller

    optional. select controller: adaptec, 3ware, lsi, lsi-storcli, zfs, md. Defaults to adaptec.

  • -v,--verbose

    optional. display matched controller utility output

  • -t,--target target

    optional. select controller target, e.g. md127 for md, myzpool for zfs, 2 for adaptec raid controller 2..

  • -T,--timeout timeout

    optional. set timeout for this check, defaults to 15s.

DESCRIPTION

This script uses oem tools to check the raid status.

It works with

  • Adaptec (arcconf)
  • _3ware (tw_cli)
  • LSI (MegaCli or storcli)
  • zfs (zpool)
  • md (mdadm)

RETURN CODES

  • exit 0

    OK (no errors, everything is fine)

  • exit 1

    WARNING ('rebuilding' state)

  • exit 2

    ERROR ('degraded' and 'offline' states)

  • exit 3

    UNKNOWN (controller not found, unknown status or usage errors)

DEPENDENCIES

  • Sys::Syslog
  • File::Path
  • Fcntl
  • arcconf (optional)
  • tw_cli (optional)
  • MegaCli (optional)
  • storcli (optional)
  • zpool (optional)
  • mdadm (optional)

INSTALLATION

Move the script anywhere you like, then add it to your snmpd.conf:

exec checkraid /path/to/checkraid [options]

or to your nrpe.conf:

command[check_raid]=sudo /usr/sbin/checkraid [options]