| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
|  |  | |||
Home -> Community -> Mailing Lists -> Oracle-L -> RE: monitoring listener.log
Hi and 
thanks to " Danisment Gazi Unal (what does it mean ?)"
Here 
is the script :
#!/bin/sh
# This script make 2 things :
# 1- archive alert files
# 2- search "ORA-" in alert.log file
# if error is found , send an email to adresses passed in parameters
#
# Entry parameters :
# 1- SID
# 2- list of emails separated by a space
# Ex : % ALTERTCHECK ORCL <A 
href="mailto:user1_at_company.com">user1_at_company.com <A 
href="mailto:user2_at_company.com">user2_at_company.com
# ---------------------------------------------------------------
SCRIPT_DIR=/home/ORCL/script
ORACLE_SID=$1
shift
EMAIL=$*
# Set ALERT_DIR and ALERT_FILE
# ------------------------------------------
ALERT_DIR=/app/oracle/admin/$ORACLE_SID/bdump ALERT_FILE=alert_$ORACLE_SID.log ALERT_LOG=$ALERT_DIR/$ALERT_FILE
  -----Message 
  d'origine-----De: Saurabh Sharma 
  [mailto:saurabhs_at_fcsltd.com]Date: vendredi 27 avril 2001 
  12:12Ą: Multiple recipients of list ORACLE-LObjet: Re: 
  monitoring listener.log
  hey can u elaborate how do u scan each log 
  file, and convert it in email msg.
  how do u do this..
   
  saurabh sharma
  dba
   
  <BLOCKQUOTE 
  style="BORDER-LEFT: #000000 2px solid; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px; PADDING-LEFT: 5px; PADDING-RIGHT: 0px">
    Hi list, 
    We have a script wich monitor the alert.log for 
    each database. This script scan the alert.log file and send an email if an 
    ORA-xxx error occured
    Now, we want to write a script monitoring the 
    listener.log file : wich kind of message or variable indicate a 
    network  problem (ORA-xxx, ...) ?
    ...then we 'll have the same question for the log 
    file made by OEM ! TIA 
  
Received on Thu May 03 2001 - 10:44:45 CDT
|  |  |