SUNWaccu SUNWaccr

  • Follow


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?

Thanks

0
Reply srobs51095 (7) 5/9/2006 5:56:48 PM

srobs51095@yahoo.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?
>
> Thanks

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)


//Lars

0
Reply tunla 5/9/2006 9:11:37 PM


In article <1147209097.751753.72670@j33g2000cwa.googlegroups.com>,
	"tunla" <lars.tunkrans@bredband.net> writes:
> 
> srobs51095@yahoo.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.

-- 
mailto:rlhamil@smart.net  http://www.smart.net/~rlhamil

Lasik/PRK theme music:
    "In the Hall of the Mountain King", from "Peer Gynt"
0
Reply Richard 5/10/2006 7:27:43 PM

How can I determine in the cron/log which lines are from the acct jobs?

The pacct file is being created, but fiscal, nite, and sum are still
empty.

0
Reply srobs51095 5/16/2006 2:45:29 PM

I have determined that the crontab for adm is not running.  Why would
this be so?  I have restarted cron /etc/init.d/cron stop and start...

0
Reply srobs51095 5/16/2006 3:48:59 PM

srobs51095@yahoo.com <srobs51095@yahoo.com> wrote:
> I have determined that the crontab for adm is not running.  Why would
> this be so?  I have restarted cron /etc/init.d/cron stop and start...
> 

http://docs.sun.com/app/docs/doc/805-7229/6j6q8svg4?q=accounting&a=view

0
Reply News 5/16/2006 4:47:11 PM

5 Replies
391 Views

(page loaded in 0.135 seconds)

Similiar Articles:











7/23/2012 9:20:20 AM


Reply: