WMI - Mount Points Windows Monitor Solve

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
oslec
Posts: 55
Joined: Mon Jan 14, 2013 5:19 pm

WMI - Mount Points Windows Monitor Solve

Post by oslec »

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!
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: WMI - Mount Points Windows Monitor Solve

Post by tgriep »

Thanks a lot for posting the information. I am sure it will be helpful to everyone.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked