In article <email@example.com>,
"tunla" <firstname.lastname@example.org> writes:
> email@example.com wrote:
>> I have enabled system accounting on a SunBlade150 for testing and
>> everything is running fine. I have enabled it on a Sunfire v490 and
>> nothing seems to be running (/etc/init.d/acct start gives message that
>> accounting is starting, but there are no files in /var/adm/acct/fiscal,
>> /nite, or /sum)). I have ensured that adm is not in cron.deny. Can
>> anyone think of some things I can check on as to why it is not running?
>> Also, is there a process I can check?
When you (meaning the OP) say enabled, did you just do the rc script, or
did you uncomment the lines in adm's crontab too?
On mine, I changed them a bit so as not to run ckpacct too close to
runacct, since they tend to step on each other. Something like this
(adjust the hours for your particular needs):
# Changed to run ckpacct at the top of every hour _except_ when runacct
# runs; runacct and ckpacct can step on each other over switching the pacct
# file, and runacct will always switch it regardless of size. (rlhamil)
# 0 * * * * /usr/lib/acct/ckpacct
0 0,2,6,8,10,12,14,16,18,22 * * * /usr/lib/acct/ckpacct
0 1,3,5,7,9,11,13,15,17,19,23 * * * /usr/lib/acct/ckpacct
0 4 * * * /usr/lib/acct/runacct 2>/var/adm/acct/nite/fd2log
30 9 * * 5 /usr/lib/acct/monacct
> accounting is supposed to produce the /var/adm/pacct*
> files. theese contain the raw data that you can investigate with
> acctcom(1) or lastcomm(1)
> every night the cron entries in the ADM cronfile is supposed to
> aggregate the collected data and put the reports in /var/adm/acct/sum
> Then the /var/adm/pacct* files of the previous day are deletetd.
> Check that the pacct* files are created.
> check /var/cron/log for error statuses for the acct jobs (rc=1)
If the cron jobs were uncommented already, then also check adm's email.
Lasik/PRK theme music:
"In the Hall of the Mountain King", from "Peer Gynt"