LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-04-2007, 05:04 AM   #1
meniscus
Member
 
Registered: May 2006
Posts: 70

Rep: Reputation: 15
Log Crashes?


Is it possible to log the number of operating system crashes during a period?

What errors should i be looking for (and in what folder) that have fatal consequences for my computer and cause it to crash?
 
Old 07-04-2007, 05:12 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
well a crash can be caused by a huge range of different things, some will be logged already, some won't. by their very nature, you can't be sure that you'll know what's caused a specific crash, as... it crashed.
 
Old 07-04-2007, 05:58 AM   #3
meniscus
Member
 
Registered: May 2006
Posts: 70

Original Poster
Rep: Reputation: 15
But is there not an error message logged somewhere after reboot(var/log/messages....im thinking) that'll state there was a fatal error and the "system shut down unexpectedly due to Error X" or something to that effect?
 
Old 07-04-2007, 06:18 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
not if the error that's caused the crash has removed the ability for the system to write a log entry to disk. you can't ask a system to crash in a nice enough way to be able to write a little note and put the cat out before collapsing in a heap. often servers can push panic data to a serial port or something, but writing to a disk is no mean feat when you're about to snuff it.
 
Old 07-04-2007, 07:27 AM   #5
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,260

Rep: Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328
There are some things you can try, but there's no general soln, although I believe some of the Big Iron systems do provide a crash-dump, but I'm not sure Linux can do that.
Basically, look for patterns eg same times every day, same progs working eg /var/log/messages will log until it crashes, so what was it doing just before it died?
Write your own daemon to check/log stuff every 5 mins eg output from 'top' for example.
If /var/log/messages can show you roughly when it crashed, checkk all the log files recs you can find for the preceding eg 5 mins ie everything under /var/log.
Try to turn off everything you don't need.
 
Old 07-06-2007, 06:02 AM   #6
meniscus
Member
 
Registered: May 2006
Posts: 70

Original Poster
Rep: Reputation: 15
Thanks very much for your answers
 
  


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
Firefox crashes when I try to log in to most website BrianK Linux - Software 4 03-27-2007 05:21 PM
Slackware crashes when log-off or restart under X Basel Slackware 19 10-03-2005 09:04 PM
System crashes during log out bulldogzerofive Linux - General 0 07-20-2005 04:26 PM
occasional kdm log-out and application closure crashes dizzi Slackware 4 07-15-2004 06:10 AM
Repeated crashes - here's my log message jeffreybluml Linux - Newbie 2 05-21-2004 10:19 AM


All times are GMT -5. The time now is 05:47 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