Ditto here. When I've needed a way to parse logs for error conditions I've
simply written a Kix script (www.kixtart.org) to do the job and have it
return an errorlevel. The only downside I've found is that if the
application producing the logs doesn't role them over/purge them/archive
them quickly then whatever error condition you are checking for may still
exist for a period of time after you've responded and resolved the problem.
This, however, could be resolved by writing a more complex script than a
simple "if error exist exit with errorlevel 'blarg'" or having it perform
some action on the log file itself.

Cheers,
Anthony



                                                                           
             "David Cook"                                                  
             <[EMAIL PROTECTED]                                             
             .com.au>                                                   To 
             Sent by:                  <[EMAIL PROTECTED]>               
             [EMAIL PROTECTED]                                          cc 
             stone.nu                                                      
                                                                   Subject 
                                       RE: [SA-list] SA Scanning text logs 
             24/07/2003 08:50                                              
             AM                                                            
                                                                           
                                                                           
             Please respond to                                             
             [EMAIL PROTECTED]                                             
                    nu                                                     
                                                                           
                                                                           




I use an external check (kix script) to check our faxing application log
files for a string that then returns an error condition. The only real
reason I went that way is that it was fairly easy to implement and kix
has built in 'macros' to cover dates etc which can be fairly easily
re-arranged.

Regards,

David Cook


-----Original Message-----
From: Kyle Smith [mailto:[EMAIL PROTECTED]
Sent: Thursday, 24 July 2003 5:41 AM
To: '[EMAIL PROTECTED]'
Subject: RE: [SA-list] SA Scanning text logs


Here is a copy line for the log file ( with just a pinch of censoring) I
hope it helps: Tue, 22 Jul 2003 19:03:15 Mountain Daylight Time x.x.x.x
- Server1 (x.x.x.x) has changed state to down Tue, 22 Jul 2003 19:12:18
Mountain Daylight Time x.x.x.x - Server1 (x.x.x.x) has changed state to
up Tue, 22 Jul 2003 19:19:31 Mountain Daylight Time x.x.x.x - Server1
(x.x.x.x) has changed state to down Tue, 22 Jul 2003 19:24:02 Mountain
Daylight Time x.x.x.x - Server1 (x.x.x.x) has changed state to up Tue,
22 Jul 2003 19:29:47 Mountain Daylight Time x.x.x.x - Server1 (x.x.x.x)
has changed state to down Tue, 22 Jul 2003 19:32:36 Mountain Daylight
Time x.x.x.x - Server1 (x.x.x.x) has changed state to up

Sincerely,
Toromont Process Systems

Kyle Smith
Information Systems Support
Direct Phone:            403 717 4520
Fax:                     403 717 4545
Email:                         [EMAIL PROTECTED]

 -----Original Message-----
From:              gene Martinez [mailto:[EMAIL PROTECTED]
Sent:        Wednesday, July 23, 2003 1:08 PM
To:          [EMAIL PROTECTED]
Subject:           Re: [SA-list] SA Scanning text logs

Maybe you can post a part of the log and then someome might be able to
help you out...

At 11:08 AM 7/23/03 -0600, you wrote:
>            I have an external ping application ( I know SA has this
functionality
>but I have my reasons) the generates ping logs to a text
file.
>What I would like to for SA to scan these logs and notify me when a
>server goes down. Has anybody done something similar?
>
>Sincerely,
>Toromont Process Systems
>
>Kyle Smith
>Information Systems Support
>Direct Phone:           403 717 4520
>Fax:                    403 717 4545
>Email:                        [EMAIL PROTECTED]
><mailto:[EMAIL PROTECTED]>
>
>To unsubscribe from a list, send a mail message to
>[EMAIL PROTECTED] With the following in the body of the message:
>   unsubscribe SAlive
>
>
Regards,

Gene
                         [EMAIL PROTECTED]
                         http://www.eclipse.net/~njkat
To unsubscribe from a list, send a mail message to [EMAIL PROTECTED]
With the following in the body of the message:
   unsubscribe SAlive
To unsubscribe from a list, send a mail message to [EMAIL PROTECTED]
With the following in the body of the message:
   unsubscribe SAlive
To unsubscribe from a list, send a mail message to [EMAIL PROTECTED]
With the following in the body of the message:
   unsubscribe SAlive


To unsubscribe from a list, send a mail message to [EMAIL PROTECTED]
With the following in the body of the message:
   unsubscribe SAlive

Reply via email to