[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] tailing logs across multiple servers
- Subject: Re: [cobalt-users] tailing logs across multiple servers
- From: "Steve Werby" <steve-lists@xxxxxxxxxxxx>
- Date: Thu Aug 16 23:02:04 2001
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
"Gordon Fong" <g.fong@xxxxxxxxxxx> wrote:
> Does anyone have any pointers to how I can write a shell script or
whatever,
> to be able to tail maillogs across multiple RAQs?
>
> I would like to run one command that then ssh's to multiple RAQs and tails
> the output from the maillog to one screen. The times may be out of sync
> slightly which may make things look funny but at least I can see what
mails
> are being delivered without too many windows open.
You can create NFS mounts for the other servers so they're accessible as
what appear to be directories on the master server. Then you can access
them by doing tail as normal from one shell window. Or you can setup cron
jobs to retrieve all or part of the maillogs periodically (pull) or emailed
to an address on the master server which has a procmail rule to drop the
messages in separate folders based on the sending machine (push). In order
to shell to several machines and run a script against all of them at the
same time I think you'll need to do something advanced like write a Perl/PHP
script that used socket connections and will probably be somewhat complex,
but I could be wrong.
HTH,
--
Steve Werby
President, Befriend Internet Services LLC
http://www.befriend.com/