Saturday, April 13, 2013

Process Accounting

Process accounting can be turned on by referencing the /etc/init.d/acct file, either in a command line with start/stop, or by linking to the appropriate rc file:

ln -s /etc/init.d/acct /etc/rc2.d/S22acct

ln -s /etc/init.d/acct /etc/rc0.d/K22acct

The /etc/acct/holidays file may also need to be edited, if different monitoring is desired during holidays.

The root and adm crontabs can also be edited to run dodisk, ckpacct, monacct, and runacct.

Process accounting logs can be examined directly using acctcom.

No comments: