[prev in list] [next in list] [prev in thread] [next in thread] 

List:       redhat-devel
Subject:    Brainstorm... (fwd)
From:       Jeff Aitken <jaitken () dimension ! net>
Date:       1997-06-05 11:30:51
[Download RAW message or body]

I received the following message from a coworker.  I've got a set of
perl scripts that do exactly what you describe that I'm willing to
share, if you're interested.  


--
Jeff Aitken
jaitken@dimension.net


----- Forwarded message from Robert Rowe -----

>From rrowe@winstar.com  Thu Jun  5 10:48:42 1997
Message-Id: <3.0.32.19970605104941.00ae9360@mail.winstar.com>
X-Sender: rrowe@mail.winstar.com
X-Mailer: Windows Eudora Pro Version 3.0 (32)
Date: Thu, 05 Jun 1997 10:49:42 -0400
To: jaitken@winstar.com
From: Robert Rowe <rrowe@winstar.com>
Subject: Brainstorm...

You have probably already come up with something like this, but if you
haven't it sounds interesting.  This email is about Linux, but the idea is
good for any UNIX.

>Resent-Date: 5 Jun 1997 14:17:14 -0000
>Resent-Cc: recipient list not shown: ;
>MBOX-Line: From redhat-devel-list-request@redhat.com  Thu Jun  5 10:17:13
1997
>X-Authentication-Warning: quick.kaybee.org: kirk owned process doing -bs
>Date: Thu, 5 Jun 1997 10:16:59 -0400 (EDT)
>From: Kirk Bauer <kirk@kaybee.org>
>To: Red Hat Linux Development <redhat-devel-list@redhat.com>
>cc: Red Hat List <redhat-list@redhat.com>
>Subject: Brainstorm...
>Resent-Message-ID: <"xJT2D3.0.t77.efibp"@mail2.redhat.com>
>Resent-From: redhat-devel-list@redhat.com
>Reply-To: redhat-devel-list@redhat.com
>X-Mailing-List: <redhat-devel-list@redhat.com> archive/latest/1824
>X-Loop: redhat-devel-list@redhat.com
>Resent-Sender: redhat-devel-list-request@redhat.com
>X-URL: http://www.redhat.com
>
>I just had (what I think to be) a good idea.  I have written this script
>that is made for producing a daily report of /var/log/messages.  I thought
>of a way to make it much more expandable.
>
>How about this.  Make a /etc/daily-report.d/ directory.  In this directory,
>there would be files named 'sshd', 'PAM_pwdb', etc.  These filenames
>would correspond to the name of a certain daemon when it logs to syslog.
>
>For example, I have a main script (/etc/cron.daily/dailyscript).  What it
does
>is get the list of filenames in /etc/daily-report.d and it splits the entries
>from /var/log/messages for the proper date into one file per service.  Then,
>for each file in /etc/daily-report.d, it would execute that script with a
>paramter of the filename that contains the messages for that service.  Then,
>each script would do a basic thing like:
>
># Note, this one is very simple, it just ignore some messages that don't
matter
># and displays the rest... these scripts could be made to be very intricate
># (like some of mine in the current dailyscript)
>###################################
>#!/bin/bash
>if [ -x /usr/sbin/sshd ] ; then
>   echo ; echo
>   echo "SSHD Messages:" ; echo
>   # get rid of stupid messages and print the rest,
>   # indenting the messages properly for readability.
>   grep -v "stupid, worthless messages" $1 | sed 's/.*/   &/'
>fi
>###################################
>
>If something like this became standard, each program (sshd, PAM_pwdb, etc)
could
>install their own file in /etc/daily-report.d/ to provide meaningful daily
data
>to the sysadmin...
>
>Anybody else like this idea?
>
>=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
>Kirk Bauer -- Georgia Tech -- kirk@kaybee.org <== Finger for PGP
>   http://www.kaybee.org/~kirk/html        ResNet RTA
>
>--
>To unsubscribe:
>mail -s unsubscribe redhat-devel-list-request@redhat.com < /dev/null
>
>
>
==========-------------------------------------==========
  Robert W. Rowe          WinStar Wireless, Inc.       =
                          703.847.6818               =
                          rrowe@winstar.com         =
                          rrowe@nmaa.org             \
  Pager:  800.465.8894  no pin                        \
==========-------------------------------------========+

----- End of forwarded message from Robert Rowe -----

-- 
Jeff Aitken
jaitken@dimension.net

--
To unsubscribe:
mail -s unsubscribe redhat-devel-list-request@redhat.com < /dev/null

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic