API about system performance monitor

Hello,
there. We want to write application on HP-UX to monitor system resource,such as CPU,Network Traffic Load,Disk Usage,etc. Anyone know these API functions except the system command ? thanks.

man page for pstat

thank you very much!

Hi,

pstat works great on HP but I am looking for api on Solaris as well as couple of flavours of Linux. Can you help me in giving a more generic sort of api or method to use to get system and process cpu, memory and i/o usage.

Best Regards,
Raj

I have always used :
1) vmstat - Memory statistics
2) iostat - disk/tape io device statistics
3) sar - for everything.
4) netstat - network statistics
5) top - the last and ultimate tool.
6) glance - But it's a licensed version

Of course there's always collectl which essentially replaces all the tools mentioned in the previous post. On the other hand if you're looking for some sort of API to write your own, just look at /proc on linux. Of course the documentation is poor and you may have to look at a lot of source code. Since these is the way the other tools get at their data at least you know which source to read
-mark

Third software: HP SiteScope for HP-UX