Or

fsutil volume diskfree C:

Total # of free bytes        : 18446315520
Total # of bytes             : 80023715840
Total # of avail free bytes  : 18446315520

Still you would need to parse the results and perform some calculations.

-----Original Message-----
From: ossec-list@googlegroups.com [mailto:ossec-l...@googlegroups.com] On 
Behalf Of Rich Rumble
Sent: Wednesday, September 29, 2010 6:20 AM
To: ossec-list@googlegroups.com
Subject: Re: [ossec-list] How to Configure ossec to alert when the file system 
is 80% full

wmic logicaldisk where name="c:" get freespace, size
Then you'd have to compare the results...

The output looks like this:
C:\>wmic logicaldisk where name="c:" get freespace, size
FreeSpace    Size
16238436352  80024170496

If C: isn't the proper system root, then try

wmic logicaldisk where name="%systemdrive%" get freespace, size

>From that point I don't know how to get OSSEC to parse the data
but it's the easiest method I can think of to grab the data.
-rich

Reply via email to