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.
WMI FreeSpace Alert
-
- Posts: 2832
- Joined: Tue May 16, 2006 4:41 am
- Contact:
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
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
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
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