Checks overal health of IBM FlashSystem family devices (formerly Storwize). Includes storage, network and cluster status.
https://en.wikipedia.org/wiki/IBM_FlashSystem
https://en.wikipedia.org/wiki/IBM_Storwize
Main additions and changes:
Original script was made for "Shinken", a Nagios rewrite. This version is a fork, for more information see: docs/Sources.md.
apt
or yum install perl
)apt
or yum install sblim-wbemcli
)mkuser
in CLI)If you dont want to use git, get a tarball or zip archive. Or, if you only want the script get libexec/check_ibm_storwize.pl.
The main updated Perl script is located in "libexec" dir. Copy it to the host where you want to run it and which has access to the IBM storage device, for example your Nagios server.
check_ibm_storwize.pl -H ibm01.example.com -P 5988 -u nagios -p <PASSWORD> -C StorageVolume
check_ibm_storwize.pl -h
IBM Storwize & FlashSystem health status plugin for Nagios (v20221223-mk)
Needs 'wbemcli' to query the Storwize Arrays CIMOM server
Usage: check_ibm_storwize.pl [-h] -H host [-P port] -u user -p password -C check [-c crit] [-w warn]
Flags:
-C check Check to run. Currently available checks:
Array, ArrayBasedOnDiskDrive*, BackendVolume, Cluster, ConcreteStoragePool**,
DiskDrive, Enclosure, EthernetPort, FCPort, IOGroup*, IsSpare, MasterConsole,
MirrorExtent, Node, QuorumDisk, StorageVolume**
BackendController, BackendTargetSCSIProtocolEndpoint, FCPortStatistics
IPProtocolEndpoint, iSCSIProtocolEndpoint*, ProtocolController*, RemoteCluster,
HostCluster
-h Print this help message
-H host Hostname of IP of the SVC cluster
-P port CIMOM port on the SVC cluster
-p Password for CIMOM access on the SVC cluster
-u User with CIMOM access on the SVC cluster
-c crit Critical threshold as <n> NOK items or as % (only for checks with '*' or '**')
-w warn Warning threshold as <n> NOK items or as % (only for checks with '*' or '**')
-s skip Skip element(s) using regular expression
-b bytes Do not convert bytes to MiB GiB TiB
Check thresholds:
The bold numbers can be changed with -c
and -w
. If percentage -c 100
is set, the plugin will warn only.
These checks will WARN if more than half of total items are down: BackendVolume, EthernetPort and FCPort.
All nagios config file examples are now in "etc" dir. Use as you see fit.
See: docs/README.md