Check for Offline or Failed Disks

The new **Disk **check monitors the disks of a NetApp Filer. Depending on the settings, the check sends an error message when offline or failed disks are found.

An example using a 7-Mode Filer: $ **./check_netapp_pro.pl Disk -H sim812 ‑‑what=failed** NETAPP_PRO DISK CRITICAL - 14 disks checked, 1 critical and 0 warning. sim812 v5.16: not failed sim812 v5.17: not failed sim812 v5.18: not failed sim812 v5.19: not failed sim812 v5.21: not failed sim812 v5.22: not failed sim812 v5.24: not failed sim812 v5.25: not failed sim812 v5.26: not failed sim812 v5.27: not failed sim812 v5.28: not failed sim812 v5.29: not failed sim812 v5.32: not failed sim812 v5.20: admin failed (CRITICAL) In this context, the switch --sort_criterion (which is valid for all switches) is quite interesting. It allows the critical disks to be displayed at the top of the list: $ **./check_netapp_pro.pl Disk ... ‑‑sort_criterion=exit** NETAPP_PRO DISK CRITICAL - 14 disks checked, 1 critical and 0 warning. sim812 v5.20: admin failed (CRITICAL) sim812 v5.16: not failed sim812 v5.17: not failed sim812 v5.18: not failed sim812 v5.19: not failed sim812 v5.21: not failed sim812 v5.22: not failed sim812 v5.24: not failed sim812 v5.25: not failed sim812 v5.26: not failed sim812 v5.27: not failed sim812 v5.28: not failed sim812 v5.29: not failed sim812 v5.32: not failed The **Disk **check replaces the sometimes inconsistent check DiskFailed, since it sent error messages either for failed or offline disks according to the Filer Mode.