From: Ian Jackson Date: Fri, 28 May 2010 21:28:51 +0000 (+0100) Subject: Install innduct-stats-report X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=innduct.git;a=commitdiff_plain;h=11f46c417e5ab4826d6184b953cd091187a2d259 Install innduct-stats-report --- diff --git a/Makefile.am b/Makefile.am index f87a069..1e91bea 100644 --- a/Makefile.am +++ b/Makefile.am @@ -40,7 +40,8 @@ WARNINGS= \ CFLAGS = @CFLAGS@ $(WARNINGS) $(WERROR) $(CMDLINE_CFLAGS) bin_PROGRAMS = innduct -man_MANS = innduct.8 +bin_SCRIPTS = innduct-stats-report +man_MANS = innduct.8 innduct-stats-report.8 innduct_SOURCES = duct.c conn.c filemon.c infile.c recv.c xmit.c \ cli.c defer.c help.c statemc.c __oop-read-copy.c diff --git a/innduct-stats-report b/innduct-stats-report index 391dac1..62007ed 100755 --- a/innduct-stats-report +++ b/innduct-stats-report @@ -10,6 +10,10 @@ our %counts; # Input lines look like this: # May 23 19:00:02 chiark innduct[23236]: news.relativity.greenend.org.uk| info: completed feedfile read=76 (+bl=7,+err=0) missing=0 offered=76 (ch=76,nc=0) accepted=75 (ch=75,nc=0) unwanted=1 (id=1,bod=0,nc=0) rejected=0 (id=0,bod=0,nc=0) deferred=0 (id=0,bod=0,nc=0) missing=0 (id=0,bod=0,nc=0) connretry=0 (id=0,bod=0,nc=0) +if (@ARGV && $ARGV[0] =~ m/^\-/) { + die "$0: bad usage: no options supported\n"; +} + while (<>) { next unless m/^ [:0-9A-Za-z ]+[ ] diff --git a/innduct-stats-report.8 b/innduct-stats-report.8 new file mode 100644 index 0000000..d0795ee --- /dev/null +++ b/innduct-stats-report.8 @@ -0,0 +1,20 @@ +'\" t +.TH INNDUCT-STATS-REPORT 8 +.SH NAME +innduct-stats-report \- summarise transfer statistics logged by innduct +.SH SYNOPSIS +.B innduct-stats-report +.RI [logfile +.IR ...] +.SH DESCRIPTION +.B innduct-stats-report +reads logfiles mentioned on its command line, or a single logfile +stream fed on stdin, and produces a summary listing of articles logged +by innnduct instances, one line per site. +.SH BUGS +How to deal with long site names should be configurable. In general +more flexibility and functionality would be good. +.SH HISTORY +Written by Ian Jackson +.SH "SEE ALSO" +innduct(8)