LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 07-09-2002, 06:30 PM   #1
sanglih
LQ Newbie
 
Registered: Jun 2002
Posts: 12

Rep: Reputation: 0
any hardware failure detection software?


Hi, is there anyone who knows how to check hardwares?
I've been looking for this about two months but nobody knows.

It's a bit amazing there's no way to detect hardware/software failures in Linux. Seems like Windows do the better job.

When I have a CDrom cable unconnected, my RH 6.2 doesn't know until I try to mount it.
And RH just hang there(you call this crash?).

Same thing when I try network card. If the network card isn't fully connected, it gives me error and hangs(crashes).

I want to know before this happens.
Like windows, if the cdrom is not connected, you can see in the Explorer(cdrom icon with big X).

I am so frustrated.

Thanks.

-Sanglih
 
Old 07-09-2002, 07:16 PM   #2
finegan
LQ Guru
 
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700

Rep: Reputation: 59
As far as the cdrom/hd/anything IDE really, no there isn't a better hardware failure detection method, but your using the linux automounter to try and mount those drives, which will hang if the drive isn't there, or is deranged. However, say in the case of a failing cdrom, you can check the output of "dmesg" and find out exactly what's wrong, different messages will indicate different things. "Bad Sector Read" usually just means the CD is dirty. Windows won't tell you that.

In the case of the network card being unplugged... well, it shouldn't hang. If you mean that it hangs on bootup, you probably get an IP from dhcp and RH has dhcpcd pre-set to try and find that dhcp server for 60 seconds before it gives up.

In the case of bad keyboard, mice going flaky, hard drive failures, errors get spit out straight to a terminal that X-windows will open just to show you things are going kazoo.
In the case of memory errors, no operating system handles memory checking well, they all rely on being resident in memory too much to check that. www.memtest86.com is a great utility for that.

Basically "dmesg" is the best way to notice issues, its the kernel's log of hardware recognition.

Cheers,

Finegan
 
Old 07-09-2002, 07:34 PM   #3
pickledbeans
Member
 
Registered: Jun 2002
Location: Bailey, CO
Distribution: Slackware
Posts: 483

Rep: Reputation: 31
This might have interesting prospects:
This document describes the installation and usage of the LKCD (Linux Kernel Crash Dump) package.

http://tldp.org/HOWTO/Linux-Crash-HOWTO/index.html
 
Old 07-12-2002, 02:01 PM   #4
sanglih
LQ Newbie
 
Registered: Jun 2002
Posts: 12

Original Poster
Rep: Reputation: 0
Thank you so much.

Thanks for your replys.
I am making this machine which will be diskless, keyboardless, monitor(video)less, mouseless.

I want to write a program that checks hardware failure(cdrom, network card) and let me know.
I was thinking to write some code to check my hardwares health constantly(like every 3 sec). If something happens, I want to shutdown( or do something).

It seems like there's no way to do it.

It's frustrating this way. In windows, I can tell right a way...
There must be a way to do it.. How can windows do but Linux can't?

Thanks.
 
Old 07-12-2002, 04:36 PM   #5
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 56
Tell me what windows can do without monitor, keyboard, mouse, and disk. You are refering to windows GUI tools, right? Guess what, linux comes with the best system monitoring tool just over 600K in size - GKRELLM - that's GUI based tool,and guess what, the command line provides everything you need - lm_sensors to monitor temperature of your CPU and other components, ifconfig, tcpdump etc to monitor your network, df to monitor your free space, who and w to see who is logged in and their activities, ps and top to see what processes are running, syslogd to monitor your logs, /proc entries to get system's critical information. What I am saying you can dig through man pages for various utilities already available on your system to see what they are useful for, and what can be better then cron and at to automate execution of these utilities and send you notifications. You must spend some time exploring your system, get some linux administration books, and get your hands dirty to tighten your system's security, detect hardware mis-configurations, update your system with latest patches for critical software and so forth.

Last edited by neo77777; 07-12-2002 at 04:37 PM.
 
Old 07-12-2002, 05:26 PM   #6
sanglih
LQ Newbie
 
Registered: Jun 2002
Posts: 12

Original Poster
Rep: Reputation: 0
Thanks.. but

Thanks. I am trying to make my system as small as possible.
I don't want to add to big application even though there's any.
I downloaded that Gui program. I am not sure it monitor HD and CDRom(dvd rom, CDwr, any IDE devices?).
I have tried because I don't have enough space to add GUI stuff in my system.

I am not complaining about that Linux can't do what windows can do. I am just thinking if Windows can do then Linux can do. I just want to learn from people who are linux guru.

I've been asking around for about 2 months now(not only here).
I don't get any clear answer for that.
I've talked with lots of people. One single person knows.

I think you are right. but I am not sure whether MSDOS hangs when cdrom fails(like broken IDE cable).

My system has nothing on it. if IDE cable is loosen(somehow) and the system hangs, there's no way I can find out. I just want to know if there's any way to solve this problem.

Btw, English is not my first language. If what I say sounds rude(or make you upset), I am sorry. I didn't mean to.

Thanks.

-S
 
Old 07-12-2002, 08:02 PM   #7
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 56
The language barrier is an understandable issue around here, there are ppl from all over the world so nobody gets offended about it, don't worry. Yes it is very common for hardware to fail in a certain period of time, and tell you the truth I have no clue if there is any app like a toolkit to mnitor all your hardware, that's why I suggested to get to know your system as well linux in general, with help of avaialble apps you can create your own toolkit (as far as IDE goes take a look at hdparm - very handy command line utility to monitor IDE bus and devices attached to it on your system). Again the best place I can suggest would be man pages, and books, don't get upset when I barked about getting books - believe me you'll need one, and after you get hooked with linux you'd find yourself in a state of farther exploration of your system - means even more reading. As for myself linux has always been trial and error OS for me, if there was an obsticle I couldn't get around, even with online help I dag through a local bookstore to find an answer. Linux is always learning I don't believe it is fun just to have it running as it is straight from the box.
Cheers
Good luck
 
  


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
Hardware ?? detection?? n0kturnal Debian 1 09-04-2005 11:13 PM
Software/ Hardware failure caused chaos. leshka_uk Linux - Hardware 1 08-11-2004 07:28 AM
Software/ Hardware failure caused chaos. leshka_uk Linux - Software 0 08-11-2004 07:14 AM
Client machine hardware and software detection using a program in red hat 9 network. Mohit.Project Linux - Networking 1 01-28-2004 02:46 PM
Ethernet Detection Failure after .20 Image set in lilo and reboot sai Slackware 1 03-09-2003 12:41 AM

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

All times are GMT -5. The time now is 12:56 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration