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!
Sergio
WMI - Mount Points Windows Monitor Solve
Re: WMI - Mount Points Windows Monitor Solve
Thanks for sharing, oslec!
Be sure to check out our Knowledgebase for helpful articles and solutions!