check_netapp_storageport

Checks for degraded or otherwise non-ok storage-ports. A degraded storage port can be the result of damaged fiber optic or copper cables. E.g. if a QSFP copper to optical LC is used because the disk shelfs are located in another server room, some dust on the connectors can result in a degraded cable. This plugin will warn you if that happens.

Usage

$ check_netapp_storageport -H <host> [...] [--help]

Description

This plugin goes trough the list of all storage ports and alarms if at least one of them is not online.

Important Parameters

--include / --exclude: Include or exclude disks based on their name. The node-name is pre-fixed to the disk-name so that you can filter also based on the node-name.

--ok-status=<regex>: Defaults to ^online$ so that only online storage ports are considered to be ok. E.g. --ok-status=^(on|off)line$ would allow also offline storage ports for an ok-result.

For all other parameters consult --help on the commandline.

STOR05-XY1::*> storage port show -node STOR05-XY1-01
 
                             Speed
Node               Port Type (Gb/s) State    Status
------------------ ---- ---- ------ -------- ---------------
STOR05-XY1-01
                   0a   SAS       6 enabled  online
                   0b   SAS       0 enabled  offline
                   0c   SAS       6 enabled  online-degraded
                   0d   SAS       0 enabled  offline
                   3a   SAS       0 enabled  offline
                   3b   SAS       6 enabled  online
                   3c   SAS       0 enabled  offline
                   3d   SAS       6 enabled  online
                   6a   SAS      12 enabled  online
                   6b   SAS      12 enabled  online
                   6c   SAS      12 enabled  online
                   6d   SAS      12 enabled  online
12 entries were displayed.
 

Examples

Simple Examples

$ check_netapp_storageport -H filer 
NETAPP STORAGE PORT CRITICAL - 9 storage ports checked, 4 CRITICAL
filercluster-01.v2: offline (CRITICAL)
filercluster-01.v7: offline (CRITICAL)
filercluster-01.v6: offline (CRITICAL)
filercluster-01.v3: offline (CRITICAL)
filercluster-01.v5: online
filercluster-01.v4: online
filercluster-01.v8: online
filercluster-01.v1: online
filercluster-01.v0: online

Checks if all storage ports are online.


$ check_netapp_storageport -H filer  --ok-status="^(on|off)line"$
NETAPP STORAGE PORT OK - 9 storage ports checked
filercluster-01.v8: online
filercluster-01.v7: offline
filercluster-01.v6: offline
filercluster-01.v5: online
filercluster-01.v4: online
filercluster-01.v3: offline
filercluster-01.v2: offline
filercluster-01.v1: online
filercluster-01.v0: online

Checks if all storage ports are either online or offline.