5791101158
Turn off process accounting ('no procacct' mode). But atop still has an ability to collect valuable stats. Bring in internal "custom_acct_file" option: * false - use atop default accounting file * /path_to/atop.acct - custom one * undef - disable accounting procacct mode DocImpact: 'custom_accounting_file' is system wide process accounting file (valid values is above). Change-Id: Ida00dc663dd8c6494c479de2ae2f0f7ab6014a84 Closes-Bug: #1530167
24 lines
537 B
Plaintext
24 lines
537 B
Plaintext
# Managed by puppet
|
|
#
|
|
|
|
<% if @osfamily == 'RedHat' -%>
|
|
# Current Day format
|
|
CURDAY=`date +%Y%m%d`
|
|
# Log files path
|
|
LOGPATH=<%= @logpath %>
|
|
# Binaries path
|
|
BINPATH=/usr/bin
|
|
# PID File
|
|
PIDFILE=/var/run/atop.pid
|
|
# interval (default 10 minutes)
|
|
INTERVAL=<%= @interval %>
|
|
<% elsif @osfamily == 'Debian' -%>
|
|
INTERVAL=<%= @interval %>
|
|
LOGPATH="<%= @logpath %>"
|
|
OUTFILE="$LOGPATH/daily.log"
|
|
<% end -%>
|
|
<% if @custom_acct_file or @custom_acct_file.nil? -%>
|
|
# empty value to disable process accounting
|
|
ATOPACCT=<%= @custom_acct_file %>
|
|
<% end -%>
|