Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
check_smartarray
Compatible With
- Nagios 1.x
- Nagios 2.x
- Nagios 3.x
Owner
Website
Hits
100817
Just copy the shellscript to your server - it autodetects connected drives and outputs any with errors first.
SYNTAX:
$path/check_smartarray.sh
OUTPUT:
da1: DEGRADED / da2: rebuilding / da0: ok / da3: ok
Failed/rebuilding volumes will always be first in the output string, to help diagnose the problem when recieving the output via pager/sms.
Various outputs explained:
ok The device is reported as ok by the smart array controller
DEGRADED The RAID volume is degraded, it's still working but without the safety of RAID, and in some cases with severe performance loss.
rebuilding The RAID is rebuilding, will return to OK when done
ready for recovery The RAID is ready for recovery, but not recovering. This can happen if automatic recovery is disabled, and on some smaller versions of the SmartArray Controllers where only one RAID volume can be rebuild at a time
unknown state Volume is in an unknown state. Please report this to me (soren at klintrup.dk) so I can update the script
include the following output:
camcontrol devlist
camcontrol inquiry da0 -D
run the inquiry for every volume on the system.
TESTED:
Tested on the following controllers:
HP SmartArray 6i
HP SmartArray 5i
HP SmartArray P400
Should work on any SmartArray controller, including newer controllers.
Get the latest version from http://soren.klintrup.dk
SYNTAX:
$path/check_smartarray.sh
OUTPUT:
da1: DEGRADED / da2: rebuilding / da0: ok / da3: ok
Failed/rebuilding volumes will always be first in the output string, to help diagnose the problem when recieving the output via pager/sms.
Various outputs explained:
ok The device is reported as ok by the smart array controller
DEGRADED The RAID volume is degraded, it's still working but without the safety of RAID, and in some cases with severe performance loss.
rebuilding The RAID is rebuilding, will return to OK when done
ready for recovery The RAID is ready for recovery, but not recovering. This can happen if automatic recovery is disabled, and on some smaller versions of the SmartArray Controllers where only one RAID volume can be rebuild at a time
unknown state Volume is in an unknown state. Please report this to me (soren at klintrup.dk) so I can update the script
include the following output:
camcontrol devlist
camcontrol inquiry da0 -D
run the inquiry for every volume on the system.
TESTED:
Tested on the following controllers:
HP SmartArray 6i
HP SmartArray 5i
HP SmartArray P400
Should work on any SmartArray controller, including newer controllers.
Get the latest version from http://soren.klintrup.dk
Reviews (0)
Be the first to review this listing!