system monitoring api

Hi all,

I am looking for api to get me system monitoring statictics every 5 minutes.

I am looking at the following statistics:

  1. System CPU Usage
  2. Process CPU Usage
  3. Process Memory Usage
  4. I/O Usage for a certain disk.
  5. Process I/O bytes/sec utilization.

I have seen very nice api pstat_* for HP but I am also looking for api on Linux and solaris as well.

Any bit of generic unix would be of great use.

Thanks,
Raja

SYSSTAT , linux specific.
You can use sar equivalencies for other unixes.

pstat is another family of api's found on HPUX for example.

Hi,

Thanks a lot for your help.

What about solaris and IBM-AIX, what apis are available for them.

Best Regards,
Raj

Also I have seen sysstat, i am not able to find Process I/O bytes/sec utilization.
THe rest of the four items i am able to find :System CPU Usage, Process CPU Usage, Process Memory Usage, I/O Usage for a certain disk.