Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 09-04-2012, 05:50 AM   #1
Registered: Sep 2011
Posts: 162

Rep: Reputation: Disabled
Smile Hi I would like to setup automated error email

I would like to setup automated error email notifications for any hardware + software +kernel errors in linux

How can I do it ?
Old 09-04-2012, 06:20 AM   #2
Senior Member
Registered: Sep 2010
Distribution: Debian
Posts: 1,632
Blog Entries: 3

Rep: Reputation: 346Reputation: 346Reputation: 346Reputation: 346
All I can think of is:

./program 2>/tmp/error_file; if [ -s /tmp/error_file ] ; then cat /tmp/error_file | sendmail ; rm /tmp/error_file ; fi
You'd have to maybe set up aliases or wrapper scripts for this. It doesn't seem a very sensible thing to do either, you're going to have your mailbox flooded with emails that mean little if nothing.

And of course, this only works for software. You can get smartd to send you emails if it detects problems on your hard drives, but I know of nothing that will work for kernel errors or other hardware errors..

Last edited by Snark1994; 09-04-2012 at 06:22 AM.
Old 09-04-2012, 06:41 AM   #3
Registered: Sep 2011
Posts: 162

Original Poster
Rep: Reputation: Disabled
i wants to get the error logs from all the Linux machine to my Linux server in case any critical problem going to happen on that machine..
Old 09-04-2012, 06:43 AM   #4
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984
well there is no simple way to identify what an "error" is, they can be reported different by the apps as there's no real common framework past syslog, which many services don't use. I imagine you couldn't really define it yourself in specific terms.


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
Trying to setup Automated "Video on Demand" with VLC. Ubuntu 10.04 Desktop Spac3 Programming 2 12-04-2011 10:28 AM
Automated email response km4hr Linux - Software 1 09-21-2007 11:03 AM
Automated build and email log in bash sardaukar_siet Linux - Server 1 03-08-2007 11:59 AM
Automated user setup script Oxagast Linux - General 3 10-11-2005 01:25 PM
automated email list forwarding linuxhippy Slackware 9 05-22-2005 06:53 PM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 08:59 PM.

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