NetApp Monitoring

Documentation

Raidstatus-Check

Checks the aggregates raid-status.

Usage

$ check_netapp_pro.pl Raidstatus -H <host> [-I <name> | -X <name>] [--help] [...]

Description

This plugin checks the raid-status of one or more aggregates. What is considered to be ok is set by the switch --ok_state.

ATTENTION: The switch --ok_state expects a regular expression and e.g.
7-mode DataONTAP returns the raid-status as a commified list like "raid_dp, degraded". So you MUST anchor the regex in order to avoid false negatives::

--ok_state=^raid_dp$ # This is correct
--ok_state=raid_dp # This is **wrong**!!

Setting --ok_state=raid_dp would tell the check that "raid_dp, degraded" is ok - when it is possibly not.

Consider using -v for inspection, if you are not satisfied with the result.

Simple Examples

[S1] ./check_netapp_pro.pl Raidstatus -H filer

Check the raid-status of all aggregates using the defaults.

[S2] ./check_netapp_pro.pl Raidstatus -H filer --ok_state=^raid_dp$

Check the raid-status of all aggregates. Alarm if the status is not exactly raid_dp. (The anchors ^ and $ are very important - please read the docs above!)


NETAPP_PRO RAIDSTATUS OK - 3 aggregates checked.
sim812 aggr0: raid_dp
sim812 aggr1: raid_dp
sim812 aggr_empty: raid_dp
[S3] ./check_netapp_pro.pl Raidstatus -H filer -I ^aggr0$ --ok_state=^raid_dp$

Check aggr0 only for being in state raid_dp.


NETAPP_PRO RAIDSTATUS OK - 1 aggregate checked.
sim812 aggr0: raid_dp
[S4] ./check_netapp_pro.pl Raidstatus -H filer -X ^aggr0$

Check any aggregates raid-status, but not that of aggr0.

Advanced Examples

Hint: The input for advanced examples is shortend. Replace the '...' below with ‑H <your filers ip or host-name>

[A1] ./check_netapp_pro.pl Raidstatus ... --ok_state='^(raid_dp, normal|raid_dp, hybrid, normal|raid_tec, normal|mixed_raid_type, hybrid, normal)$'

The pattern for ok-state can get quiet complex. Anchoring is crucial, see the warning hint above! The single-quotes escape the pattern from the shell. The pattern in this example also includes 'mixed_raid_type, hybrid, normal' as ok-state.


NETAPP_PRO RAIDSTATUS OK - 4 aggregates checked
na13.na13_rootaggr: raid_dp, normal
na14.na14_rootaggr: raid_dp, normal
na13.na13_dataaggr0: mixed_raid_type, hybrid, normal
na14.na14_dataaggr0: mixed_raid_type, hybrid, normal

© Copyright 2009-2023 Ingo Lantschner • Phone: +43-664-143 84 18 • contact@netapp-monitoring.info • en/help/Raidstatus.html • last update: 2023-03-07