NetApp Monitoring

Documentation

DiskCount-Check

Checks for the number of disks matching specific criteria.

Usage

$ check_netapp_pro.pl DiskCount -H <host> --storage_pool=<pool> --container_type=spare --disk_type=SSD|BSAS|... [--help] [...]

Description

This plugin checks for the number of disks which are of a certain type, in a certain storage-pool or container. These criteria are ANDed - so a disk is only counted if it matches every criteria.

The thresholds (--warning, --critical) are less-than compared - so alarms are sent, if the number of a certain disk-species falls below that number.

A typical usage of that check is to assure that SSD spare-disks do not fall below 1 (or any other number you are willing to invest).

Simple Examples

[S1] ./check_netapp_pro.pl DiskCount -H filer --container_type=spare --disk_type=SSD -w 1 -c 1

Sends a critical alarm, if the number of SSD-spare-disks falls below 1.

NETAPP_PRO DISKCOUNT OK - 1 disk with matching criteria found.
NA17-01 1.1.12: - spare SSD | disk_count=1;1;1;0;
[S2] ./check_netapp_pro.pl DiskCount -H filer --container_type=spare --disk_type=SSD -w 1 -c 0

Same as above but sends a warning instead of a critical alarm.

NETAPP_PRO DISKCOUNT OK - 1 disk with matching criteria found.
NA17-01 1.1.12: - spare SSD | disk_count=1;1;0;0;
[S3] ./check_netapp_pro.pl DiskCount -H filer --storage_pool=p1 --container_type=spare --disk_type=SSD -w 1 -c 1

Sends a critical alarm, if the number of SSD-spare-disks in pool p1 falls below 1.

[S4] ./check_netapp_pro.pl DiskCount -H filer --container_type=spare --disk_type=BSAS -w 3 -c 2

Sends a critical alarm, if the number of BSAS-spare-disks falls below 2.

NETAPP_PRO DISKCOUNT CRITICAL - 1 disk with matching criteria found.
NA17-02 1.1.11: - spare BSAS | disk_count=1;3;2;0;
[S5] ./check_netapp_pro.pl DiskCount -H filer

Lists all disks - not very usefull as check but may be helpfull during configuration.

NETAPP_PRO DISKCOUNT OK - 40 disks with matching criteria found.
NA17-01 1.0.0: - shared BSAS
NA17-01 1.0.1: - shared BSAS
NA17-01 1.0.2: - shared BSAS
NA17-01 1.0.3: - shared BSAS
NA17-01 1.0.4: - shared BSAS
NA17-01 1.0.5: - shared BSAS
NA17-01 1.0.6: - shared BSAS
NA17-01 1.0.7: - shared BSAS
NA17-01 1.0.8: - shared BSAS
NA17-01 1.1.12: - spare SSD
NA17-01 1.1.13: p1 shared SSD
NA17-01 1.1.14: p1 shared SSD
NA17-01 1.1.15: p1 shared SSD
NA17-02 1.0.10: - shared BSAS
NA17-02 1.0.11: - shared BSAS
NA17-02 1.0.12: - shared BSAS
NA17-02 1.0.13: - shared BSAS
NA17-02 1.0.14: - shared BSAS
NA17-02 1.0.15: - shared BSAS
NA17-02 1.0.16: - shared BSAS
NA17-02 1.0.17: - shared BSAS
NA17-02 1.0.18: - aggregate BSAS
NA17-02 1.0.19: - aggregate BSAS
NA17-02 1.0.20: - aggregate BSAS
NA17-02 1.0.21: - aggregate BSAS
NA17-02 1.0.22: - aggregate BSAS
NA17-02 1.0.23: - aggregate BSAS
NA17-02 1.0.9: - shared BSAS
NA17-02 1.1.0: - aggregate BSAS
NA17-02 1.1.1: - aggregate BSAS
NA17-02 1.1.10: - aggregate BSAS
NA17-02 1.1.11: - spare BSAS
NA17-02 1.1.2: - aggregate BSAS
NA17-02 1.1.3: - aggregate BSAS
NA17-02 1.1.4: - aggregate BSAS
NA17-02 1.1.5: - aggregate BSAS
NA17-02 1.1.6: - aggregate BSAS
NA17-02 1.1.7: - aggregate BSAS
NA17-02 1.1.8: - aggregate BSAS
NA17-02 1.1.9: - aggregate BSAS | disk_count=40;3;2;0;

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