You can monitor the total size as well as the available free space of all disk drives that are attached to a MS Windows host by using the check_wmi_plus.pl plugin set up in the following format:
check_wmi_plus.pl --IgnoreMyOutDatedPerlModuleVersions -H $HOSTADDRESS$ -u %WINCREDENTIALS:1% -p %WINCREDENTIALS:2% -m checkdrivesize -a . -w _Used%=90
The previous example would return the following results:
MONITORED BY: vlpmonapp01 RETURN CODE: 1 (WARNING) OUTPUT: OK - C: Total=63.38GB, Used=17.00GB (26.8%), Free=46.38GB (73.2%) OK - D: Total=341.80GB, Used=3.52GB (1.0%), Free=338.28GB (99.0%) OK - E: Total=343.46GB, Used=0.26GB (0.1%), Free=343.20GB (99.9%) OK - F: Total=78.12GB, Used=1.27GB (1.6%), Free=76.86GB (98.4%) WARNING - [Triggered by _Used%>90] - P: Total=9.77GB, Used=8.87GB (90.8%), Free=0.90GB (9.2%) |'C: Space'=17.00GB; 'C: Utilisation'=26.8%;90; 'D: Space'=3.52GB; 'D: Utilisation'=1.0%;90; 'E: Space'=0.26GB; 'E: Utilisation'=0.1%;90; 'F: Space'=1.27GB; 'F: Utilisation'=1.6%;90; 'P: Space'=8.87GB; 'P: Utilisation'=90.8%;90;
Using the examples noted above, you can monitor all disk drives that are attached to a MS Windows host simultaneously without needing to specify each of them individually.