Subject: Re: managing tens of NetBSD machines
To: None <netbsd-users@NetBSD.org>
From: Henry Nelson <netb@yuba.kcn.ne.jp>
List: netbsd-users
Date: 04/03/2005 08:08:16
On Sat, Apr 02, 2005 at 10:34:26AM -0600, Tracy Di Marco White wrote:
> I probably have 70 or 80 NetBSD machines sending me mail every

How do you pay the electricity bill?

> night, and I add more machines on a regular basis.  With all the
> other mail I get, I'd like to figure out a better way to handle
> all the reports.  What do other people do, just read all the
> reports, send them into something that checks for a problem,

I use procmail to log everything, but to only put reports with non-
default content into my mailbox:

:0
* ^From root@(ews0[1-2]|home)\.(myisp\.net|myinternallan)
{
:0 wc
* ^Subject: ews01 .*output for
|$FORMAIL -k -X From -X Date: -X Subject: -X Message-ID: \
|/usr/bin/gzip --best >>$HOME/.logs/ews01-sec.gz
:0 wc
* ^Subject: ews02 .*output for
|$FORMAIL -k -X From -X Date: -X Subject: -X Message-ID: \
|/usr/bin/gzip --best >>$HOME/.logs/ews02-sec.gz
:0 wc
* ^Subject: home .*output for
|$FORMAIL -k -X From -X Date: -X Subject: -X Message-ID: \
|/usr/bin/gzip --best >>$HOME/.logs/home-sec.gz
:0 B
* (Nothing to report on|Uptime:  .* 0 users,)
/dev/null
:0 B
* -20^1 ^.+$
*  11^0 ^Rebuilding locate database:$
*  10^1 ^$
/dev/null
:0:
$MAILDIR/sec-rep
}

-- 
henry nelson
 | day job: | http://yuba.kcn.ne.jp/biorec/nehan/henken.html