check_netapp_shelfenv (Shelf-Environment)

Checks the shelf-status and various shelf-specific metrics and states on a NetApp-filer.

Description

This plugin checks status and collects metrics of shelves and their environment (temperature, cooling-devices, power-supplies, voltage-sensors, current-sensors).

Most of the checks do not receive any thresholds but rely on the ones set in DataONTAP. (Exception for temperature - see Advanced Examples below.)

The string or pattern given to the --exclude|-X and --include|-I parameters is matched against the instance name <node>.shelf<shelf>.<element><id>, where the element is bay, boot-device, coin-battery, current, dimm, fan, psu, temperature or voltage (e.g. node-01.shelf0.fan1). Only the shelf-status subcommand differs: its instance name is <node> <shelf> (with a blank). This enables the checking of specific shelves but also single elements.

Available Subcommands

check_netapp_shelfenv allows you to monitor several aspects of the shelves. Not all of them are explained with examples here. At the time of this writing there are:

  • bay → Bay operational status.
  • boot-device → Boot device operational status
  • coin-battery → Coin battery operation status and voltage (mV)
  • current → Current sensor operational status and current (mA)
  • dimm → DIMM (dual in-line memory module) operational status
  • fan → Fan (cooling device) operational status and rpm
  • help → Help about any command
  • psu → Power supply unit’s operational status
  • shelf-status → Shelf’s operational status
  • temperature → Temperature sensor’s operational status and temperature reading(°C)
  • voltage → Voltage sensor operational status and voltage (V)

Please use the main commands --help for the latest list of checks.

Examples

Simple Examples

$ check_netapp_shelfenv shelf-status -H filer
NETAPP SHELFENVIRONMENT OK - 1 shelf checked
SBXTEST-01 1.0: normal

Checks all shelfs. Returns CRITICAL if the status is not ’normal'


$ check_netapp_shelfenv temperature -H filer
NETAPP SHELFENVIRONMENT OK - 7 temperature sensors checked
SBXTEST-01.shelf1.0.temperature1: normal, 26°C
SBXTEST-01.shelf1.0.temperature2: normal, 34°C
SBXTEST-01.shelf1.0.temperature3: normal, 30°C
[...]
| 'SBXTEST-01_1.0_temp1'=26C;;;; 'SBXTEST-01_1.0_temp2'=34C;;;; 'SBXTEST-01_1.0_temp3'=30C;;;; [...]

Checks the temperature-sensors in all shelfs. Returns CRITICAL if one or more sensors report an error.


$ check_netapp_shelfenv temperature -H filer --perfdata-uom-string=empty
NETAPP SHELFENVIRONMENT OK - 7 temperature sensors checked
[...]
| 'SBXTEST-01_1.0_temp1'=26;;;; 'SBXTEST-01_1.0_temp2'=34;;;; 'SBXTEST-01_1.0_temp3'=30;;;; [...]

Same as above but without a unit in the performance data.


$ check_netapp_shelfenv fan -H filer
NETAPP SHELFENVIRONMENT OK - 4 fans checked
SBXTEST-01.shelf1.0.fan1: normal
SBXTEST-01.shelf1.0.fan2: normal
SBXTEST-01.shelf1.0.fan3: normal
SBXTEST-01.shelf1.0.fan4: normal
| 'SBXTEST-01_1.0_fan1'=2970rpm;;;; 'SBXTEST-01_1.0_fan2'=3000rpm;;;; 'SBXTEST-01_1.0_fan3'=3000rpm;;;; 'SBXTEST-01_1.0_fan4'=3000rpm;;;;

Checks all cooling-fans in all shelves.


$ check_netapp_shelfenv psu -H filer
NETAPP SHELFENVIRONMENT OK - 2 power supply units checked
SBXTEST-01.shelf1.0.psu1: normal
SBXTEST-01.shelf1.0.psu2: normal

Checks all power-supplies in all shelves.


$ check_netapp_shelfenv voltage -H filer
NETAPP SHELFENVIRONMENT OK - 4 voltage sensors checked
SBXTEST-01.shelf1.0.voltage1: normal, 6V
SBXTEST-01.shelf1.0.voltage2: normal, 12V
SBXTEST-01.shelf1.0.voltage3: normal, 6V
SBXTEST-01.shelf1.0.voltage4: normal, 12V
| 'SBXTEST-01_1.0_voltage1'=5.7V;;;; 'SBXTEST-01_1.0_voltage2'=12.3V;;;; 'SBXTEST-01_1.0_voltage3'=5.7V;;;; 'SBXTEST-01_1.0_voltage4'=12.18V;;;;

Checks all voltage-sensors in all shelves. The text shows the voltage rounded to whole volts, the performance data the exact value.

Consider to set --perfdata-uom-string=empty if the ‘V’ (Volts) uom confuses your monitoring-systems graphing engine.


$ check_netapp_shelfenv current -H filer
NETAPP SHELFENVIRONMENT OK - 4 current sensors checked
SBXTEST-01.shelf1.0.current1: normal, 4290mA
SBXTEST-01.shelf1.0.current2: normal, 5580mA
SBXTEST-01.shelf1.0.current3: normal, 4570mA
SBXTEST-01.shelf1.0.current4: normal, 0mA
| 'SBXTEST-01_1.0_current1'=4290mA;;;; 'SBXTEST-01_1.0_current2'=5580mA;;;; 'SBXTEST-01_1.0_current3'=4570mA;;;; 'SBXTEST-01_1.0_current4'=0mA;;;;

Checks all current-sensors in all shelves.

Consider to set --perfdata-uom-string=empty if the ‘mA’ (milliampere) uom confuses your monitoring-systems graphing engine.


$ check_netapp_shelfenv coin-battery -H filer
NETAPP SHELFENVIRONMENT OK - 2 coin batteries checked
SBXTEST-01.shelf1.0.coin-battery1: normal, 3009mV
SBXTEST-01.shelf1.0.coin-battery2: normal, 3025mV
| 'SBXTEST-01_1.0_coinbattery1'=3009mV;;;; 'SBXTEST-01_1.0_coinbattery2'=3025mV;;;;

Checks all coin-batteries status in all shelves.


Advanced Examples

Thresholds for the temperature

The temperature check allows to set thresholds which check in addition to the internal status.

$ check_netapp_shelfenv temperature -H filer --warning=40
NETAPP SHELFENVIRONMENT WARNING - 7 temperature sensors checked, 1 WARNING
SBXTEST-01.shelf1.0.temperature2: normal (WARNING), 41°C
SBXTEST-01.shelf1.0.temperature1: normal, 26°C
SBXTEST-01.shelf1.0.temperature3: normal, 30°C
[...]
| 'SBXTEST-01_1.0_temp1'=26C;40;;; 'SBXTEST-01_1.0_temp2'=41C;40;;; 'SBXTEST-01_1.0_temp3'=30C;40;;; [...]

Checks the temperature-sensors in all shelfs. Returns CRITICAL if one or more temperature-sensors report an error, but in addition already returns a WARNING if one of them is over 40 degrees.


$ check_netapp_shelfenv temperature -H filer --critical=50
NETAPP SHELFENVIRONMENT CRITICAL - 7 temperature sensors checked, 1 CRITICAL
SBXTEST-01.shelf1.0.temperature1: normal (CRITICAL), 52°C
SBXTEST-01.shelf1.0.temperature2: normal, 34°C
SBXTEST-01.shelf1.0.temperature3: normal, 30°C
[...]
| 'SBXTEST-01_1.0_temp1'=52C;;50;; 'SBXTEST-01_1.0_temp2'=34C;;50;; 'SBXTEST-01_1.0_temp3'=30C;;50;; [...]

Checks the temperature-sensors in all shelfs. Returns CRITICAL if one or more sensors report an error, or if one of them is over 50 degrees

Allow empty bays

Our plug-in logic changes the state of bays whose state is unknown and which have no disk to ’empty’. This enables the check to be configured so that empty bays are no longer reported as critical.

$ check_netapp_shelfenv bay -H filer --ok-state='~^(normal|empty)$'
NETAPP SHELFENVIRONMENT OK - 132 bays checked
nac06-01.shelf1.0.bay11: normal
[...]
nac06-01.shelf1.2.bay31: empty
[...]