LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 04-29-2013, 01:20 AM   #1
bspai
LQ Newbie
 
Registered: Apr 2013
Posts: 2

Rep: Reputation: Disabled
Question need help in detecting hardware failure through errors



Hi,
I am new to linux,
I have a bash script which triggers some tasks if any one if below hardware failures are detected.
1) if any hard disk bad sectors is detected
2) if any ethernet interface is failed
3) if any failure detected in nfs

lunux version in context is 2.6, red hat

my requirement:
I dont want to run any specific tools to find out these conditions as it is not feasible in my context. I just want to see the error logs from Operating system and detect above failures.

Questions:
1) Is my requirement a possible case?
2) Can I use /var/log/messages file alone to detect any of above these errors? or any more files need to be used?
3) I believe if #2 is possible then I can use grub to check the error messages and then trigger.
I needed exact error messages. Could some one suggest me links where I can find these errors?

I am trying to search through different sites for errors. Also let me know if there is any more suitable place to post this query.

thank you for your support.
 
Old 04-29-2013, 02:14 AM   #2
bspai
LQ Newbie
 
Registered: Apr 2013
Posts: 2

Original Poster
Rep: Reputation: Disabled
got some details for #3 nfs failure errors


got some details for 3) if any failure detected in nfs

http://www.linuxhomenetworking.com/w...Error_Messages

But still need to find on failures #1 and #2. i.e. hard disk bad sectors and ethernet failures.
 
  


Reply



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
detecting network route failure Skaperen Linux - Networking 2 04-29-2012 03:37 PM
Hardware Drivers not detecting hardware correctly in Hardy adanedhel728 Ubuntu 2 04-26-2008 03:22 AM
Software Raid 1 Array Failure - Detecting and Repairing sloik2000 Linux - Hardware 5 04-05-2008 12:28 AM
Detecting new hardware Xris718 Linux - General 2 01-27-2004 05:41 PM
Detecting new hardware deepesh General 2 06-15-2002 04:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

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

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
Open Source Consulting | Domain Registration