It is currently Thu, 08 Jun 2023 13:43:10 GMT



 
Author Message
 Monitoring disk space
I am writing a linux application that needs to monitor the available
disk space and CPU usage.  The CPU usage was easy to calculate from
values in /proc/stat.  But, I can't seem to find a simple way to monitor
the disk usage on a ext2 fs.  And no, I can't do a system call to du and
parse the results.

Does anyone have ideas or sample code?

Thanks,
Steve

--
/ / /
\ \ \  mailto:shelik...@intermetrics.com
/ / /



 Tue, 01 May 2001 03:00:00 GMT   
 Monitoring disk space
In article <364CA3B0.4A18D...@intermetrics.com>,
Steven Shelikoff  <shelik...@intermetrics.com> wrote:

fstatfs(2)/statfs(2)

They've been around in the UNIX world for a while.

(Followups fiddled with)

-- DN



 Tue, 01 May 2001 03:00:00 GMT   
 
   [ 2 post ] 

Similar Threads

1. How to monitor disk space usage and performance

2. snmp monitoring disk space ?

3. monitoring disk space?

4. How to monitor disk space -> send warning on beeper ?

5. monitoring free disk space

6. Utility to monitor free disk space..

7. disk space monitor

8. Out of disk space though df/du show space available

9. Strange disk free space/used space...


 
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software