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!
Sergio
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: WMI - Mount Points Windows Monitor Solve

Post by lmiltchev »

Thanks for sharing, oslec!
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked