accounting problem

From: ing.Bubulac Angela Tatiana <tatia_at_alpha1.infim.ro>
Date: Fri, 08 May 1998 10:50:43 +0300 (EET DST)

Hi,
I followed the steps described in the System Accounting chapter
regard the setup accounting (D.U.3.2C). I put the next lines in the
/usr/spool/cron/crontabs/adm file:
45 13 * * 1-6 /usr/sbin/acct/runacct > /usr/adm/acct/nite/fd2log&
5 * * * * /usr/sbin/acct/ckpacct&
45 13 1 * * /usr/sbin/acct/monacct&
45 13 * * * /usr/sbin/ac -p /var/adm/acct/nite/timelog&
45 13 * * * /usr/bin/last >> /usr3/lastall
I wrote the last line because the wtmp file is removed every day and I do
not know where can I find the logins for the previous days in the from
that last command displays them.
In the cron.allow I have just root and adm groups.
I looked in the /var/adm/acct/nite/statefile and it contains the COMMPLETE
word. Also there is no lock file and the active file look like this:
ri May 8 06:30:02 EET DST 1998
-rw-rw-r-- 1 adm adm 60996 May 7 22:23 /var/adm/wtmp
-rw-rw-r-- 1 adm adm 0 May 7 06:31 fee
-rw-rw-r-- 1 adm adm 415640 May 8 06:30 pacct
-rw-rw-r-- 1 adm adm 281200 May 7 08:05 pacct1
....
files setups complete
wtmp processing complete
connect acctg complete
process acctg complete for /var/adm/Spacct1.0508
process acctg complete for /var/adm/Spacct10.0508
...
all process acctg complete for 0508
tacct merge to create daytacct complete
no fees
no disk records
no queueing system records
updated sum/tacct
command summaries complete
system accounting completed at Fri
(EOF):

The lastdate file contain the date of the present day for example 0508.

The big problem for me is that I think that none of the lines in the adm
file described above are not executed because the fd2log, timelog and
lastall files have 0 bytes. Another problems is when I change the time in
the adm file form 6.30am to 13.45pm, the wtmp file is removed(runacct) at
6.30am.
Why?
Please tell me where I wrong or what I do not understand (I am new to
system administration).
Thank you.
                               \\\___///
                              \\ - - //
                               ( _at_ _at_ )
-----------------------------oOOo-(_)-oOOo--------------------------------
*Bubulac Angela Tatiana - National Institute for R&D of Materials Physics*
* Bucuresti - Magurele P.O.B. MG-7 *
* Romania *
*e-mail: tatia_at_alpha1.infim.ro | phone :401-7805385 int.1380 *
* root_at_alpha1.infim.ro | 401-7806925 *
* | 401-7804573 *
--------------------------------------Oooo--------------------------------
                              oooO ( )
                             ( ) ) /
                              \ ( (_/
                               \_)
Received on Fri May 08 1998 - 09:51:43 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:37 NZDT