Sponsored Content
Top Forums Shell Programming and Scripting Monitor log file for a Error and generate the e-mail. Post 302606857 by hishanms on Tuesday 13th of March 2012 03:06:54 AM
Old 03-13-2012
How to monitor log file for a Error and generate the e-mail.

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...

Last edited by hishanms; 03-13-2012 at 04:16 AM..
 

10 More Discussions You Might Find Interesting

1. Emergency UNIX and Linux Support

monitor log entries and send e-mail

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

monitor log entries and send e-mail

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

Generate a mail when you add info to a txt file

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

Generate script perl mail log not work

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

Monitor dynamic log file for a particular Error

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

Script to monitor /var/opt/resmon/log/event.log file

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

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:... (7 Replies)
Discussion started by: hishanms
7 Replies

8. Shell Programming and Scripting

Shell script to monitor new file in a directory and mail the file content

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

Monitor file if match then send mail

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

Monitor a file and send mail

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
TORRUS_MONITOR(8)						      torrus							 TORRUS_MONITOR(8)

NAME
monitor - Torrus Monitor. SYNOPSIS
torrus monitor --tree=TREENAME [options...] DESCRIPTION
This command starts the Monitor process for the tree TREENAME. By default it forks into a daemon, sets the log output file to /var/log/torrus/monitor.TREENAME.log, performs one monitoring cycle, and sleeps until the next cycle is scheduled. In daemon mode the log file can be reopened by sending it a SIGHUP signal. OPTIONS
--nodaemon Prevents the process from becoming a daemon and sets the log to STDERR. --runonce Instructs the script to run once and exit. Implies --nodaemon. --delay=N Makes the daemon sleep for N minutes before starting the first cycle. This would happen on the daemon startup and also after each configuration recompilation. For example, when monitor and collector start simultaneously, the collector needs some time to retrieve the data being monitored. --debug Sets the log level to debug. --verbose Sets the debug level to info. --help Displays a help message. FILES
/etc/torrus/conf/torrus-siteconfig.pl Torrus site configuration script. /var/log/torrus/monitor.TREENAME.log Monitor's log for the tree TREENAME. SEE ALSO
torrus(8) NOTES
See more documentation at Torrus home page: http://torrus.org AUTHOR
Stanislav Sinyagin <ssinyagin@yahoo.com> torrus 2.03 2013-07-26 TORRUS_MONITOR(8)
All times are GMT -4. The time now is 05:08 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy