ShelfBay-Check
Checks shelf- and port-status.
Usage
$ check_netapp_pro.pl ShelfBay -H <host> --state=shelf|disk [ ... ] [--help]
Description
This plugin checks the status of shelves and the disk-port status (e.g. BYP,
disk bypass)
Consider using -v
for inspection, if you are not satisfied with the result.
[S1] ./check_netapp_pro.pl ShelfBay -H filer --state=disk Checks all disks in all shelves on the cluster. Returns CRITICAL if not 'ok' due to the default for --ok_state
.
NETAPP_PRO SHELFBAY CRITICAL - 224 disk-port-states checked, 84 critical and 0 warning.
6b.16: present (CRITICAL)
6b.17: present (CRITICAL)
...
7b.61: present (CRITICAL)
6a.16: ok
6a.17: ok
...
[S2] ./check_netapp_pro.pl ShelfBay -H filer --state=shelf Checks all shelves on the cluster. Returns CRITICAL if not 'online' due to the default for --ok_state
.
NETAPP_PRO SHELFBAY CRITICAL - 16 shelf-bays checked, 6 critical and 0 warning.
6a.shelf1 (ESH4, 6a, a): online
6a.shelf2 (ESH4, 6a, a): online
...
6b.shelf1 (AT-FCX, 6b, b): no_status (CRITICAL)
6b.shelf2 (AT-FCX, 6b, b): no_status (CRITICAL)
...
7b.shelf1 (AT-FCX, 7b, b): no_status (CRITICAL)
7b.shelf2 (AT-FCX, 7b, b): no_status (CRITICAL)
...
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 ShelfBay ... --state=disk --ok_state='^(ok|present)$' Checks all disks in all shelves on the cluster. Returns OK if either 'ok' or 'present'.
NETAPP_PRO SHELFBAY OK - 224 disk-port-states checked.
6b.16: present
6b.17: present
...
7b.61: present
6a.16: ok
6a.17: ok
...
[A2] ./check_netapp_pro.pl ShelfBay ... --state=shelf --ok_state='^online$' -X ^6b -X ^7b Checks all shelves which do not start with '6b' or '7b'. Returns OK if 'online'.
NETAPP_PRO SHELFBAY OK - 10 shelf-bays checked.
6a.shelf1 (ESH4, 6a, a): online
6a.shelf2 (ESH4, 6a, a): online
6a.shelf3 (ESH4, 6a, a): online
6a.shelf4 (ESH4, 6a, a): online
6c.shelf1 (ESH4, 6c, a): online
7a.shelf1 (ESH4, 7a, b): online
7a.shelf2 (ESH4, 7a, b): online
7a.shelf3 (ESH4, 7a, b): online
7a.shelf4 (ESH4, 7a, b): online
7c.shelf1 (ESH4, 7c, b): online