Can this be done?
It looks to be possible using an APM WMI counter.
There is an alternative WMI class than the Quota one to monitor the client side of mounted volumes. I discovered that after I posted in the above link.
This WMI Class is called Win32_LogicalDisk:
HTH,
Yann
That WMI class will work for mapped drives. What the original poseter (and now me) are asking is, Can Orion NPM/APM monitor a Mount Point.
In other words, you have a drive 'M' and you create one or more mount points to another disk(s) that will show up as a folder under 'M'.
We are looking at doing this to limit the number of drive letters on a server, but still separate physical disk access.
Thanks
Will Win32_Volume work for you?
http://msdn.microsoft.com/en-us/library/aa394515(VS.85).aspx
Yes. I was just testing with that class, and I'm trying to figure out how to use the DeviceID property to get the drive letter and folder from Win32_MountPoint class.
I'm still learning my way using WQL and/or VBS with APM, so all I have so far is an APM that pulls one of the mount points from a server that has two mount points under one drive letter.
I'm guessing that a VB script that pulls all of the mount points may be the only way to do it.
If possible, I'd like to build an APM that is generic, so we can apply it to any server with mount points.
I'd also like to be able to convert the data to %Free so it matches with our normal disk space monitors in NPM.
Ahhh, forget the path issue, just noticed the 'Caption' property.
I have an infant script at this point. I just need help adapting this for APM use.
The ugly beginnings:
strComputer = "." Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\CIMV2") Set colItems = objWMIService.ExecQuery( _ "SELECT * FROM Win32_Volume where DriveLetter IS NULL",,48) For Each objItem in colItems intPerFree = round (objItem.FreeSpace / objItem.Capacity * 100)Wscript.Echo " Mount Point " & objItem.Caption & " has " & intPerFree & "% Free" Next
Has this matured into a working template or script yet????
I have recently seen a customer monitoring the below WMI Class and its FreeMegaBytes field using the Windows Performance Counters Monitors. Mounted Drives (even mounted on path) are shown there.
Win32_PerfFormattedData_PerfDisk_LogicalDisk
http://msdn.microsoft.com/en-us/library/aa394261(VS.85).aspx
A WQL Query such as:
SELECT FreeMegaBytes FROM Win32_PerfFormattedData_PerfDisk_LogicalDisk WHERE Name = 'C:\\MountedPath'
should make it.