Difference between revisions of "Acct"

From wikieduonline
Jump to navigation Jump to search
(Created page with "Acct package allows to activate process accounting in Linux. Installing <code>acct</code> package in Ubuntu activates accounting by default. * Configuration: <code>/etc/...")
 
Line 19: Line 19:
  
 
== See also ==
 
== See also ==
* [[linux server administration/atop|atop]]
+
* [[atop]]
* [[linux server administration/sar|sar]]
+
* [[sar]]
 
* [[auditd]] (https://linux.die.net/man/8/auditd) allows to retrieve audit records such as [[system-call]]s from the kernel
 
* [[auditd]] (https://linux.die.net/man/8/auditd) allows to retrieve audit records such as [[system-call]]s from the kernel
 
* [[Linux server administration/Performance and Troubleshooting]]
 
* [[Linux server administration/Performance and Troubleshooting]]
  
 
{{CourseCat}}
 
{{CourseCat}}

Revision as of 07:19, 16 December 2019

Acct package allows to activate process accounting in Linux. Installing acct package in Ubuntu activates accounting by default.


  • Configuration: /etc/default/acct
  • Logs file: /var/log/account/pacct


Activities

  1. Install in Ubuntu acct accounting package and deactivate it changing ACCT_ENABLE="1" to ACCT_ENABLE="0" in /etc/default/acct and stopping it /etc/init.d/acct stop
  2. Activate accounting by executing accton on and deactivate it by executing accton off and check status service acct status
grep -w acct /var/log/syslog
Jul 29 14:22:00 machine-name acct[23114]: Turning on process accounting, file set to '/var/log/account/pacct'.
Jul 29 14:22:00 machine-name acct[23114]:  * Done.
Jul 29 15:02:15 machine-name acct[12629]: Turning off process accounting.
Jul 29 15:02:15 machine-name acct[12629]:  * Done.

See also

Template:CourseCat

Advertising: