mkorthof / check_ibm_storwize

IBM Storwize & FlashSystem Nagios check
GNU General Public License v2.0
1 stars 0 forks source link
array check cluster flashsystem ibm iscsi mdisk monitor nagios nrpe perl pool quorum storage storwize v7000 volume

IBM Storwize and FlashSystem Monitoring plugin

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

Updated version

Main additions and changes:

Screenshot

Original script was made for "Shinken", a Nagios rewrite. This version is a fork, for more information see: docs/Sources.md.

Installation

Requirements

Download

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.

Script

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.

Example

check_ibm_storwize.pl -H ibm01.example.com -P 5988 -u nagios -p <PASSWORD> -C StorageVolume

Usage

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

Defaults

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.

Nagios templates

All nagios config file examples are now in "etc" dir. Use as you see fit.

More information

See: docs/README.md