When using the DiskPaths plugin with check_netapp_pro, it can be useful to leverage the lesser known –port_pattern_ok argument. For example, if you are receiving an error message similar to this:

> check_netapp_pro.pl DiskPaths -H $HOST
wrong combination 1 nodes, 2 paths for mycluster-01 with **wrong** port-combination: BA (CRITICAL)

The found port combination is reported to be BA, which is considered wrong because the default values for the port combinations include:

ABAB, AABB, BABA, ABBA, BAAB

Internal disks may require explicitly setting AA or BB, for the correct paths, this is a case of YMMV. In our specific case (above) the correct combination is given as AB and BA which translates to “each disk is connected over exactly two different paths”. Therefore the fix for our error message would be to explicitly add both the ABand the seen BA-pattern, using the –port_pattern_ok argument, to the command:

> check_netapp_pro.pl DiskPaths -H $HOST ––port_pattern_ok=AB ––port_pattern_ok=BA
NETAPP_PRO DISKPATHS OK - 28 disks checked
NET-1.1 (mycluster-01): all combinations ok 1 nodes, 2 paths for mycluster-01 with correct port-combination: BA
NET-1.10 (mycluster-01): all combinations ok 1 nodes, 2 paths for mycluster-01 with correct port-combination: BA
NET-1.11 (mycluster-01): all combinations ok 1 nodes, 2 paths for mycluster-01 with correct port-combination: BA

For more information, see the usage specific help for the DiskPaths plugin. Remember with every release to check out the online documentation and the release history.