On Tue, 2 May 2000, Kins Orekhov wrote:

> 
> Hello people!
> 
> We've been running qmail more then 6 months and have a lot of logs.
> Now I want them analyze with qmailanalog, but matchup doesn't like
> timestamps in logs because we do accustamp on logs and the tailocal it.
> 
> So, what we have is:
> 
> 1999-11-24 17:43:07.542160 status: local 0/10 remote 0/20
> 
> but matchup needs:
> 
> 957284032.988038 status: local 0/10 remote 0/20
> 
> Is it correct? I think so cuz zoverall (or other bins from
> qmailanalog) doesn't work with first logs.
> 
> So, the question is how would one use qmailanalog in that situation?

I have a patch for deamontools-0.70 that creates a new executable
called tai64nunix. It takes TAI64 timestamps and converts them to unix
epaoch time, suitable for qmailanalog. Russ Allebury has a similar
patch.

Patch follows

*** FILES.orig  Mon Mar  6 16:21:09 2000
--- FILES       Fri Mar 24 19:46:34 2000
***************
*** 15,20 ****
--- 15,21 ----
  multilog.c
  tai64n.c
  tai64nlocal.c
+ tai64nunix.c
  softlimit.c
  setuidgid.c
  envuidgid.c
*** Makefile.orig       Mon Mar  6 16:21:09 2000
--- Makefile    Fri Mar 24 19:26:57 2000
***************
*** 336,342 ****
  
  prog: \
  svscan supervise svc svok svstat fghack multilog tai64n tai64nlocal \
! softlimit setuidgid envuidgid envdir setlock rts matchtest
  
  prot.o: \
  compile prot.c hasshsgr.h prot.h
--- 336,342 ----
  
  prog: \
  svscan supervise svc svok svstat fghack multilog tai64n tai64nlocal \
! tai64nunix softlimit setuidgid envuidgid envdir setlock rts matchtest
  
  prot.o: \
  compile prot.c hasshsgr.h prot.h
***************
*** 534,539 ****
--- 534,547 ----
  tai64nlocal.o: \
  compile tai64nlocal.c buffer.h exit.h fmt.h
        ./compile tai64nlocal.c
+ 
+ tai64nunix: \
+ load tai64nunix.o unix.a byte.a
+       ./load tai64nunix unix.a byte.a 
+ 
+ tai64nunix.o: \
+ compile tai64nunix.c buffer.h exit.h fmt.h
+       ./compile tai64nunix.c
  
  tai_now.o: \
  compile tai_now.c tai.h uint64.h
*** TARGETS.orig        Mon Mar  6 16:21:09 2000
--- TARGETS     Fri Mar 24 19:49:20 2000
***************
*** 109,114 ****
--- 109,116 ----
  tai64n
  tai64nlocal.o
  tai64nlocal
+ tai64nunix.o
+ tai64nunix
  softlimit.o
  softlimit
  setuidgid.o
*** hier.c.orig Mon Mar  6 16:21:09 2000
--- hier.c      Fri Mar 24 19:55:44 2000
***************
*** 15,20 ****
--- 15,21 ----
    c(auto_home,"bin","multilog",-1,-1,0755);
    c(auto_home,"bin","tai64n",-1,-1,0755);
    c(auto_home,"bin","tai64nlocal",-1,-1,0755);
+   c(auto_home,"bin","tai64nunix",-1,-1,0755);
    c(auto_home,"bin","softlimit",-1,-1,0755);
    c(auto_home,"bin","setuidgid",-1,-1,0700);
    c(auto_home,"bin","envuidgid",-1,-1,0755);

Regards
Peter
----------
Peter Samuel                                [EMAIL PROTECTED]
Technical Consultant                        or at present:
eServ. Pty Ltd                              [EMAIL PROTECTED]
Phone: +61 2 9206 3410                      Fax: +61 2 9281 1301

"If you kill all your unhappy customers, you'll only have happy ones left"

Reply via email to