[ale] SHELL: log files monitoring

fgz fzamenski at voyager.net
Sat Feb 16 10:14:23 EST 2002



Related requests, although not specific to Oracle. I know
these are not terribly difficult to write, but I'm stilll clumsy
and slow with scripting.

I want to email out specific alerts from Solaris 2.6 and 8
/var/adm/messages, but also filter out dupe messages. Seems
I'd want to define what I want to grep out with variables,
then output all the stuff to some txt file before emailing.

I also need to compress then auto-FTP some huge DS-LDAP
generated apps logs weekly, then remove them. I suppose that
needs error checking to make sure the file went before it
deleted the original files, then maybe sleep and try again for
some specific attempts before giving up until the following week.

Obviously both would go in cron.

Thanks.
-fgz

----- Original Message -----
From: "Ken Kennedy" <kkennedy at kenzoid.com>
To: ale at ale.org
To: "Zyman, Andy" <zymana at hra.nyc.gov>
Cc: <ale at ale.org>
Sent: Friday, February 15, 2002 9:47 PM
Subject: Re: [ale] SHELL: log files monitoring

On Fri, Feb 15, 2002 at 08:43:38AM -0500, Zyman, Andy wrote:
> Greg, Joe,
> I'll probably stay with the shell + grep. But both of the programs are
very
> nice.

Let me know if you'd like some further examples of scripts...I'm an
Oracle DBA as well, and we also use scripts run from cron periodically
to check our alert logs. I think they're based off of scripts
available from some Oracle-related site (maybe metalink, I'm not sure)
but they've been extensively dinked w/ over the years.

--

Ken Kennedy | http://www.kenzoid.com | kenzoid at io.com



---
This message has been sent through the ALE general discussion list.
See http://www.ale.org/mailing-lists.shtml for more info. Problems should be 
sent to listmaster at ale dot org.






More information about the Ale mailing list