LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 09-19-2012, 04:03 PM   #1
linuxandtsm
Member
 
Registered: May 2011
Posts: 194

Rep: Reputation: Disabled
How to find why the system was rebooted


Hi all,

there is a SuSE Linux 9.3 (x86-64) machine and this box has rebooted twice in last 24 hours on its own.
What are the logs to look for to check issue ?

thanks in advance!
 
Old 09-19-2012, 05:57 PM   #2
mpapet
Member
 
Registered: Nov 2003
Location: Los Angeles
Distribution: debian
Posts: 538

Rep: Reputation: 71
If it's rebooting it's very, very likely it's a hardware issue rather than an OS issue.
 
Old 09-19-2012, 06:19 PM   #3
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Quote:
Originally Posted by linuxandtsm View Post
Hi all,

there is a SuSE Linux 9.3 (x86-64) machine and this box has rebooted twice in last 24 hours on its own.
What are the logs to look for to check issue ?

thanks in advance!
/var/log/{system,messages,kernel} ... whichever SLES provides.
 
Old 09-20-2012, 09:39 AM   #4
linuxandtsm
Member
 
Registered: May 2011
Posts: 194

Original Poster
Rep: Reputation: Disabled
Thanks for the replies,

/var/log/messages is huge, not sure how to filter this out.
and any specific log for hardware related issues ?
 
Old 09-20-2012, 09:52 AM   #5
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,361
Blog Entries: 55

Rep: Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547
Quote:
Originally Posted by linuxandtsm View Post
/var/log/messages is huge, not sure how to filter this out.
A good start would be to run your system logs through Logwatch and check the report for errors, clues and anomalies.
 
Old 09-20-2012, 10:03 AM   #6
linuxandtsm
Member
 
Registered: May 2011
Posts: 194

Original Poster
Rep: Reputation: Disabled
Thank you unSpawn,

Can you please advice me on how to install this program and configure. Any document or links.
 
Old 09-20-2012, 10:32 AM   #7
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,361
Blog Entries: 55

Rep: Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547
If you repo archives don't have it (isn't 9.3 outdated?) the try installing the RPM from http://sourceforge.net/projects/logwatch/files/. If that fails on unmet dependencies you can't install then install the tarball. The instructions are inside it in the "README" file and while it IIRC likes some Perl modules to be available it should just run OK without them. Then as root run it as 'logwatch --numeric --detail 5 --service all --range Yesterday --archives --save /var/log/logwatch.log' and then 'less /var/log/logwatch.log' after it's done. You can also have the report emailed and you can also report a different --range like Today or All. See 'man logwatch' for details.
 
Old 09-20-2012, 10:44 AM   #8
konsolebox
Senior Member
 
Registered: Oct 2005
Distribution: Gentoo, Slackware, LFS
Posts: 2,248
Blog Entries: 8

Rep: Reputation: 235Reputation: 235Reputation: 235
Quote:
Originally Posted by linuxandtsm View Post
Thanks for the replies,

/var/log/messages is huge, not sure how to filter this out.
and any specific log for hardware related issues ?
how bout using tail and less?
Code:
tail -n 2000 /var/log/messages | less -S
Then while on less' screen, type "/RAM map". You could start browsing from there.
Also, just a guess from me:
Code:
grep "thermal.*shut.*down" /var/log/messages
 
  


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
How can I ssh to an encrypted CentOS system after it has had to be rebooted? mbvpixies78 Linux - Networking 2 12-09-2011 05:12 PM
How to find the process that rebooted the server. sampappachan_nyc Linux - Server 4 05-18-2010 07:30 PM
To find, how many times my box has rebooted gsiva Linux - General 5 05-30-2009 03:12 AM
how to find out when system rebooted in the last couple of days chromatech Linux - Software 2 06-13-2006 10:50 AM
I have to set up the wlan0 up every time the system is rebooted Fuzia Linux - Wireless Networking 11 04-14-2006 05:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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