0

My first inclination here would be something built into SAR, or the sysstat package in general. If that is indeed the case however, I can't seem to find this solution.

What I would like to see, and absolutely preferably through sysstat if possible, is a historical log of process usage (memory, CPU, etc.) in much the same format as SAR logs (if not already directly available through SAR files somehow). I know monitoring software is available, but I'm more-so looking for a mostly non-intrusive package, and actually something that could be parsed relatively intuitively via statsd/collectd.

MrDuk
  • 815
  • 1
  • 10
  • 18

1 Answers1

0

Run the sar command as a background process. The syntax for this is:

sar -o datafile interval count >/dev/null 2>&1 &

All data are captured in binary form and saved to a file (datafile). The data can then be selectively displayed with the sar command using the -f option. Set the interval and count parameters to select count records at interval second intervals. If the count parameter is not set, all the records saved in the file will be selected. Collection of data in this manner is useful to characterize system usage over a period of time and determine peak usage hours.