File/Folder size test

General chat about HostMonitor
Post Reply
willhartley
Posts: 16
Joined: Sun Feb 04, 2007 4:13 pm

File/Folder size test

Post by willhartley »

I am trying to produce a test which will count the size of a selected number of files/folders and add the total size together.

I have used the file/folder size test in the past but this time the folders are not subfolders of each other.

Thanks

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

Post by KS-Soft »

Sorry, HostMonitor does not offer built-in test for this purpose. You may create your own VB or Java script and use Active Script or Shell Script test method to launch your script
Active Script test method:
http://www.ks-soft.net/hostmon.eng/mfra ... htm#script
Shell Script test method:
http://www.ks-soft.net/hostmon.eng/mfra ... m#chkShell

Regards
Alex
willhartley
Posts: 16
Joined: Sun Feb 04, 2007 4:13 pm

Post by willhartley »

thanks thought this may be the case.
willhartley
Posts: 16
Joined: Sun Feb 04, 2007 4:13 pm

Post by willhartley »

OK I have written a vbscript which returns the folder size but it fails on certain directories (such as c:\wndows\) with a permissions error.

What user do these hostmonitor test run under on a remote machine ?

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

Post by KS-Soft »

Remote machine? HostMonitor does not execute script on remote system unless you have selected some Remote Monitoring Agent (RMA) installed on remote system to perform this test. In such case script is executed by RMA (not HostMonitor) and it is started under account that was used to start RMA

Regards
Alex
Post Reply