WMI - Mount Points Windows Monitor Solve
Posted: Wed Apr 06, 2016 1:41 pm
If any have this problem monitoring a Windows Server via WMI (check_wmi_plus.pl) this is the answer:
Win32_LogicalDisk vs Win32_MappedLogicalDisk
With check_wmi_plus.pl the script query to Drives from Win32_LogicalDisk like:
"Select DeviceID,freespace,Size,VolumeName from Win32_LogicalDisk",
'','',\@collected_data,\$the_arguments{'_delay'},['FreeSpace','Size'],0);
The next step is modify the script check_wmi_plus.pl and copy checkdrivesize code to create the new subcheck checkdrivemount and query in this form:
"Select DeviceID,freespace,Size,VolumeName from Win32_MappedLogicalDisk",
'','',\@collected_data,\$the_arguments{'_delay'},['FreeSpace','Size'],0);
Hope this help..
Regards!
Win32_LogicalDisk vs Win32_MappedLogicalDisk
With check_wmi_plus.pl the script query to Drives from Win32_LogicalDisk like:
"Select DeviceID,freespace,Size,VolumeName from Win32_LogicalDisk",
'','',\@collected_data,\$the_arguments{'_delay'},['FreeSpace','Size'],0);
The next step is modify the script check_wmi_plus.pl and copy checkdrivesize code to create the new subcheck checkdrivemount and query in this form:
"Select DeviceID,freespace,Size,VolumeName from Win32_MappedLogicalDisk",
'','',\@collected_data,\$the_arguments{'_delay'},['FreeSpace','Size'],0);
Hope this help..
Regards!