On Wed, 08 Dec 1999, John Seifarth wrote:
> At 16:36 +0000 8/12/99, David Taylor wrote:
> >
> >I can't actually recall the changes, but if anyone wants them I could dig
> >out a fresh copy and diff them..
> >
>
> Yes, please, David. That monthly report looks quite impressive, and should
> even be useful looking for unwanted connections over holidays, for example.
> Post the diffs, or if you don't have time, just email me the modified
> monthly script and I'll diff the baby myself.
>
> John
>
Wow. Its unbeleivably simple [timestamps stripped]:
diald[453]: IP transmited 380 bytes and received 0 bytes.
^^^
changed to
diald[453]: IP transmitted 380 bytes and received 0 bytes.
^^^^
So, in diald.monthly just change (line 39 or so)
} elsif( /IP transmited (\d+) bytes and received (\d+) bytes/ ) {
to
} elsif( /IP transmitt?ed (\d+) bytes and received (\d+) bytes/ ) {
which will work with both log formats..
In order to make the -p (post to newsgroup) option to work I had to
fix the headers (correct newsgroup/from) and the injnews program had
the wrong path.. But its pretty simple, and also overkill :)
Having it emailed monthly/weekly by cron is pretty neat..
--
David Taylor
E-Mail: [EMAIL PROTECTED] [Remove .spam]
ICQ: 268004
PGP: [EMAIL PROTECTED] [autoresponder]
PGP signature