Download (from my Google code project)
Script Name: check_smartarray.vbs
Usage Syntax: cscript.exe //NoLogo check_smartarray.vbs [--hpacucli PATH|-h]
Author: Alex Simenduev, PlanetIT.WS (http://www.planetit.ws)
Version: 1.0.1
LastModified: 25/08/2008
Description:
Checks the status of HP Smart Array Controller Series by using "hpacucli.exe", the produced output is compatible with Nagios. The script assumes that "hpacucli.exe" is in the path, if it is not you can specify the path in command line argument (only version 1.0.1 and up) or modify the global variable in the script that responable for the "hpacucli.exe" location, the name of the variable is: "gsHpacucliPath".
Default Exit code is 3 (UNKNOWN)
Note:
This script is based on the BASH shell script taken from HP forum:
http://forums12.itrc.hp.com/service/forums/questionanswer.do?threadId=1128853
IMPORTANT:Make sure you using a latest version of "HP Array Configuration Utility CLI"
License:
- This script is supplied as-is without any support, I hope it works for you.
- You free to modify/distribute this script as you wish, but you must have the folowing line in the script:
Original author Alex Simenduev, PlanetIT.WS (http://www.planetit.ws)
Change Log:
Legend:
[*] Informational, [!] Bugix, [+] Added, [-] Removed
Version 1.0.1:
[+] Added constant for script version
[+] Added commandline arguments, use "-h" for usage help
[*] Other small/minor changes
Version 1.0b:
[!] Fixed a bug when another instance of ACU is running, a warning state will be produced in such situation.
Version 0.9b:
[*] Initial release.