View previous topic :: View next topic |
Author |
Message |
Kris
Joined: 12 May 2010 Posts: 356
|
Posted: Mon Mar 21, 2022 7:47 am Post subject: HM as quota monitor |
|
|
Hi all,
HM does a great job at monitoring folder size.
I am thinking about using HM as a 'quota monitor' for user home folders in some way.
All my user folders reside on a single logical disk.
It would be great to be able to automagically enumerate all user folders and create folder-size tests for the found folders (if they don't already exist, that is).
Some external scripting might be involved, I reckon.
Any thoughts on that, anyone?
Best regards,
Kris |
|
Back to top |
|
 |
Kris
Joined: 12 May 2010 Posts: 356
|
Posted: Mon Mar 21, 2022 9:17 am Post subject: |
|
|
Update:
So I whipped up some VB to enumerate all user folders and create a text file containing all necessary data to be imported straight into HM.
Next step:
Find a way to schedule automagic test import in HM...  |
|
Back to top |
|
 |
KS-Soft
Joined: 03 Apr 2002 Posts: 12656 Location: USA
|
Posted: Mon Mar 21, 2022 2:46 pm Post subject: |
|
|
What about WMI test?
select DiskSpaceUsed from Win32_DiskQuota
Alert if any DiskSpaceUsed > 1000000
Regards
Alex |
|
Back to top |
|
 |
KS-Soft
Joined: 03 Apr 2002 Posts: 12656 Location: USA
|
Posted: Mon Mar 21, 2022 2:51 pm Post subject: |
|
|
Quote: | Find a way to schedule automagic test import in HM.. |
There is ImportFromFile HMScript command
https://www.ks-soft.net/hostmon.eng/mframe.htm#actions.htm#actScript
HMScript action can be started by Scheduler (Options dialog) or assigned to some test (e.g. File/Folder Availability or File Integrity test that will check for file updates)
Regards
Alex |
|
Back to top |
|
 |
|