I need to monitor the CPU, N/w , memory and Disk I/O usage of a computer . Currently I'm using Ubuntu and will be running this using a Java code.
Also the monitoring frequency/ sampling interval must be customisable. I've already read this. There's no mention of network stats but for SIGAR API.
I'm looking at something lightweight. I'm having two things on my mind to do this:
running a shell script from my java code which formats the o/p . If so, which command should I use? Top gave only the stats process wise.
Use SIGAR API. but can the sampling rate be set?
Thanks!