LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-24-2012, 08:35 AM   #1
hey_you
LQ Newbie
 
Registered: May 2012
Posts: 4

Rep: Reputation: Disabled
Tool to get alerts when error occur


Hi,
Can anybody help me to find out a tool which will send me alerts msg when some error occures in my log files. As i am running a lot of scripts bt its not possible to monitor all the time so i need sm tool which alerts me wen sm error in my log file.I am using linux and python.
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 05-24-2012, 08:52 AM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,821
Blog Entries: 15

Rep: Reputation: 1664Reputation: 1664Reputation: 1664Reputation: 1664Reputation: 1664Reputation: 1664Reputation: 1664Reputation: 1664Reputation: 1664Reputation: 1664Reputation: 1664
logwatch

http://sourceforge.net/projects/logwatch/
 
Old 05-24-2012, 09:08 AM   #3
lithos
Senior Member
 
Registered: Jan 2010
Location: SI : 45.9531, 15.4894
Distribution: CentOS, OpenNA/Trustix, testing desktop openSuse 12.1 /Cinnamon/KDE4.8
Posts: 1,144

Rep: Reputation: 217Reputation: 217Reputation: 217
Hi,

other more immediate response you could get with incrond/inotify
which you can set to watch the changes of your log files and when changes happen, then run the script to find some last error you seek and email you.
 
Old 05-25-2012, 02:54 AM   #4
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,577
Blog Entries: 31

Rep: Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197
Quote:
Originally Posted by MensaWater View Post
... and logcheck which is similar (maybe more intuitive to configure) but both scan the logs periodically, not every time a new message is added to one of the logs as incrond/inotify can do.

Scanning every new log message on arrival may turn out to use more resources than is acceptable though.
 
Old 05-28-2012, 05:49 AM   #5
hey_you
LQ Newbie
 
Registered: May 2012
Posts: 4

Original Poster
Rep: Reputation: Disabled
Hi,
Thanks for ur replies but i want to set some alert mail type thing when some error msgs in log files.Becoz all time its not possible to check the log files.
 
Old 05-28-2012, 06:35 AM   #6
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,577
Blog Entries: 31

Rep: Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197
Both logwatch and logcheck send mails. For the incrond/inotify solution AFAIK a custom script would be required to send mails.
 
Old 05-28-2012, 07:53 AM   #7
hey_you
LQ Newbie
 
Registered: May 2012
Posts: 4

Original Poster
Rep: Reputation: Disabled
I guess logwatch and logcheck is checking system logs only...bt i need it for custom log files..
 
Old 05-28-2012, 08:29 AM   #8
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,577
Blog Entries: 31

Rep: Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197
Why guess when you could do some research and find out? AFAIK they can both be customised to do as you want.
 
3 members found this post helpful.
Old 05-29-2012, 05:49 AM   #9
hey_you
LQ Newbie
 
Registered: May 2012
Posts: 4

Original Poster
Rep: Reputation: Disabled
I did some changes in logwatch.conf bt my changes are not effected.
As i changed:
LogDir = /var/lib/greenplum/gpmaster/gpsne-1/pg_log
Range = today
LogFile = gpdb-2012-05-29_000000.csv
I want to track only this gpdb-2012-05-29_000000.csv file...but i am getting all the system log.
 
Old 05-29-2012, 06:54 AM   #10
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,577
Blog Entries: 31

Rep: Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197
You may get more and better answers if you start a new thread asking about logwatch configuration
 
Old 05-29-2012, 06:58 AM   #11
zhjim
Senior Member
 
Registered: Oct 2004
Distribution: Debian Squeeze x86_64
Posts: 1,748
Blog Entries: 11

Rep: Reputation: 233Reputation: 233Reputation: 233
Check out syslog-ng which you can configure to do all sort of stuff when certain log lines come in.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
A special tool to produce alerts ? naaman Linux - Desktop 5 08-04-2009 04:32 AM
Is there a program to reset eth when a error occur rude_reality Linux - Networking 1 02-18-2007 10:03 AM
when start the Debian ,error occur!!!!! jm0624 Debian 3 08-22-2005 06:57 AM
an error occur when jsp connect to mysql? shitian8848 Programming 2 06-04-2004 03:08 PM
Error occur when too many users accessing wu-ftp !! alexwcs Linux - Networking 1 09-19-2003 01:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:18 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration