WMI FreeSpace Alert

All questions related to installations, configurations and maintenance of Advanced Host Monitor (including additional tools such as RMA for Windows, RMA Manager, Web Servie, RCC).
Post Reply
nycoadmin
Posts: 1
Joined: Tue May 30, 2006 10:41 am

WMI FreeSpace Alert

Post by nycoadmin »

I am running a WMI query to monitor free space on remote computers. WMI query "select FreeSpace from CIM_LogicalDisk" is executed and alerted if drive space falls below 2GB.

However, as most systems have multiple drives, (ie C:, D:, E:), is it possible to pass the drive letter in the alert. WMI references DeviceID for each respective drive but that does not appear to be a passable variable.
KS-Soft Europe
Posts: 2832
Joined: Tue May 16, 2006 4:41 am
Contact:

Post by KS-Soft Europe »

You may provide drive letter into Comment filed for each test and then use %TaskComment% variable.
http://www.ks-soft.net/hostmon.eng/mfra ... htm#Dialog

So, WMI query should be like this: select FreeSpace from CIM_LogicalDisk where DeviceId = 'C:' and you should set Comment filed for that test as 'C:'.

Regards,
Max
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

Please note: "Problems and bugs" forum should be used when HostMonitor or some other software (e.g. Windows) does not work properly.
For configuration questions please use "Installation and configuration" forum.

Regards
Alex
xcentric
Posts: 176
Joined: Sat Oct 23, 2010 4:30 pm

Post by xcentric »

What I want to know if there is a way to get alerts if the free space falls below 10% no matter what the size of the drive is. Therefore I could use one WMI FreeSpace test for all systems to alerts below 10%.

I dont see a way to do this without factoring the total space against the free space.
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

You may use UNC test for such purpose.
If you want to use WMI then you need a script, please check the following thread http://www.ks-soft.net/cgi-bin/phpBB/vi ... php?t=4223

Regards
Alex
Post Reply