Documentation
LunSize-Check
Measures the unused but not yet released blocks inside a LUN.
Usage
$ check_netapp_pro.pl LunSize -H <host> [-w <size> -c <size> ] [-I <name> | -X <name>] [--help] [...]
Description
This plugin sends an alarm, if the number of bytes allocated but not used by a LUN exceeds a certain number.
A possible use-case for this plugin would be to determine when to run the unmap procedure on vmware. (If you present a LUN to a host, that host formats the LUN with eg. VMFS, and you put some data on it, it is reflected in the size used in the LUN. But when you delete the data again from your VMFS, the used blocks are not released on the LUN, so they are still taking up space in the LUN.)
Of course, all of this only makes sense when using thin provisioning.
Consider using -v
for inspection, if you are not satisfied with the result.
Simple Examples
Check the unused space in each lun using the default thresholds.
Check the unused space in each lun. Send a WARNING for each lun having more than 10 giga-bytes of allocated but not used blocks. Send a CRITICAL alarm for each lun with more than 20 giga-bytes of unused blocks.
Advanced Examples
Hint: The input for advanced examples is shortend. Replace the '...' below with ‑H <your filers ip or host-name>
Check the unused space in lun1 on vol2 (cm-filer).
Check the unused space in each lun except of every LUN which's name contains the string lun1 (lun1, lun10, lun11, ...).
Similar as above but more precise. Checks the unused space of all luns except of every lun which's name is ending with lun1.