03-13-2012
How to monitor log file for a Error and generate the e-mail ( Please help)
This is my log file and this is live log.
Any abnormal error other than following
I need to generate the email.
Log path : /DER/app/admin/ABC/bdump/erg.log
Current log# 2 seq# 103046 mem# 0: /ora2/oradata/ABC/redo02a.log
Current log# 2 seq# 103046 mem# 1: /ora5/oradata/ ABC//redo02b.log
Tue Mar 13 12:14:37 IST 2012
Thread 1 advanced to log sequence 103047 (AEF switch)
Current log# 3 seq# 103047 mem# 0: /ora3/oradata/ ABC/redo03a.log
Current log# 3 seq# 103047 mem# 1: /ora6/oradata/ ABC/redo03b.log
Tue Mar 13 12:19:44 IST 2012
The value (30) of MAXTRANS parameter ignored.
kupprdp: master process DM00 started with pid=65, OS id=8653
to execute - SYS.KUPM$MCP.MAIN('MD_20110816', 'CDRLOADER', 'KUPC$C_1_20110816021502', 'KUPC$S_1_20110816021502', 0);
kupprdp: worker process DW01 started with worker id=1, pid=22, OS id=8735
to execute - SYS.KUPW$WORKER.MAIN('MD_20110816', 'CDRLOADER');
Tue Mar 13 12:19:44 IST 2012
Thread 1 advanced to log sequence 103048 (AEF switch)
Current log# 1 seq# 103048 mem# 0: /ora1/oradata/ABC/redo01a.log
Current log# 1 seq# 103048 mem# 1: /ora4/oradata/ABC/redo01b.log
I need to write script for this..
Anyone can help me...
10 More Discussions You Might Find Interesting
1. Emergency UNIX and Linux Support
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
I am stuck and worried. My assignment was due a day ago and I was too busy completing other assignments due during the same time. I worry that not completing this assignment... (1 Reply)
Discussion started by: vin8465
1 Replies
2. Homework & Coursework Questions
I am stuck and worried. My assignment was due a day ago and I was too busy completing other assignments due during the same time. I worry that not completing this assignment will fail me. Need urgent help in completing the script asap. I dont want to sound pushy to get the answer but just wanted to... (10 Replies)
Discussion started by: vin8465
10 Replies
3. Shell Programming and Scripting
Hi,
I have an application's log file:
/var/log/logfile which is feeded from time to time due to an application. This file contains data, what I want is:
-Whenever some new data is copied to /var/log/logfileI want to generate an email to root BUT only with the new added data in the body.... (6 Replies)
Discussion started by: iga3725
6 Replies
4. Shell Programming and Scripting
Dear unix forum members,
I'm working on a script that will parse a mail machine's logs and print a list of email addresses in this format:
authen@domain.com | sender@domain | recipient@domain
exam
account1@domain1.com | sender2@domain2.com |... (3 Replies)
Discussion started by: puka
3 Replies
5. Shell Programming and Scripting
Hi Folks,
I need help in creating a script to monitor a continuously updating log for one particular error. If the the script finds the error it should send out an email.
Thanks for all ur help (2 Replies)
Discussion started by: a12ka4
2 Replies
6. HP-UX
AM in need of some plugin/script that can monitor HP-UX file "/var/opt/resmon/log/event.log" .
Have written a scrip in sh shell that is working fine for syslog.log and mail.log as having standard format, have interrogated that to Nagios and is working as I required .
But same script failed to... (3 Replies)
Discussion started by: Shirishlnx
3 Replies
7. Shell Programming and Scripting
This is my log file and this is live log.
Any abnormal error other than following
I need to generate the email.
Log path : /DER/app/admin/ABC/bdump/erg.log
Current log# 2 seq# 103046 mem# 0: /ora2/oradata/ABC/redo02a.log
Current log# 2 seq# 103046 mem# 1:... (1 Reply)
Discussion started by: hishanms
1 Replies
8. Shell Programming and Scripting
Hi
I am looking for a help in designing a bash script on linux which can do below:-
1) Look in a specific directory for any new files
2) Mail the content of the new file
Appreciate any help
Regards
Neha (5 Replies)
Discussion started by: neha0785
5 Replies
9. Shell Programming and Scripting
Hi
I want to monitor a file even if the file rotate. When a text occurs I want to send a mail.
Something like this but it's not working correctly:
tail -F mylog.log | grep 'MatchMe' |
while read line
do
echo $(date +"%Y-%m-%d %H:%M:%S") MatchMe occurs | mail -s "MatchMe"... (1 Reply)
Discussion started by: chitech
1 Replies
10. Shell Programming and Scripting
I want to monitor the maillog file in real time and send a mail when a certain grep condition is met. Every time the grep condition is met a mail will be sent. I wish to ignore all grep conditions 30 mins after each mail and thereafter continue monitoring.
For example:
Condition is met, mail... (1 Reply)
Discussion started by: proactiveaditya
1 Replies