Author |
Message |
Topic: Check all HD volumes for free space (variable threshold) |
chhm
Replies: 46
Views: 180392
|
Forum: Library Posted: Fri Jun 29, 2012 12:17 pm Subject: Check all HD volumes for free space (variable threshold) |
I found the following example using a WQL query to work pretty so far:
SELECT FreeSpace, Label from Win32_Volume Where Label = 'M_DB5'
I then alert if "any FreeSpace" "is < tha ... |
Topic: Check all HD volumes for free space (variable threshold) |
chhm
Replies: 46
Views: 180392
|
Forum: Library Posted: Fri Jun 29, 2012 10:43 am Subject: Check all HD volumes for free space (variable threshold) |
I'm giving up on this method and am working on using WMI. Thanks for the help. |
Topic: Check all HD volumes for free space (variable threshold) |
chhm
Replies: 46
Views: 180392
|
Forum: Library Posted: Fri Jun 29, 2012 9:23 am Subject: Check all HD volumes for free space (variable threshold) |
Looks like line 101 character 1 is the issue:
WScript.StdOut.Write HDFreeTest(sCompStatus, aThreshold) |
Topic: Check all HD volumes for free space (variable threshold) |
chhm
Replies: 46
Views: 180392
|
Forum: Library Posted: Fri Jun 29, 2012 7:36 am Subject: Check all HD volumes for free space (variable threshold) |
We can start it just fine on Windows 2003 SP2.
Try to save script into .VBS file and start it without /B switch, cscript will display error message...
Note: start script on HostMonitor system
( ... |
Topic: Check all HD volumes for free space (variable threshold) |
chhm
Replies: 46
Views: 180392
|
Forum: Library Posted: Fri Jun 22, 2012 2:17 pm Subject: Check all HD volumes for free space (variable threshold) |
Windows version?
Service Pack?
HostMonitor version?
What exactly command line do you use to start the script?
Windows Server 2003
SP 2
HM v 9.18
cmd /c cscript /B /E:VBScript %Script% %Params ... |
Topic: Check all HD volumes for free space (variable threshold) |
chhm
Replies: 46
Views: 180392
|
Forum: Library Posted: Fri Jun 22, 2012 12:45 pm Subject: Error: Script Returns no Results |
Hi -
I set up this scrtip in HM using Shell Script. If I plug in the Params under the "Lets try" tab it runs and returns a Status and Reply (e.g - Status: Ok
- Reply: C:46%(7.79) ) Thoug ... |
Topic: Check all HD volumes for free space (variable threshold) |
chhm
Replies: 46
Views: 180392
|
Forum: Library Posted: Tue Jun 05, 2012 9:02 am Subject: Check all HD volumes for free space (variable threshold) |
Anyway, my main point of posting is - who thinks this should now move to a feature request? Move Paul/greyhats work into an official HM test? I like scripts, but I think this is core requirement for ... |
|