LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Ubuntu (https://www.linuxquestions.org/questions/ubuntu-63/)
-   -   Debugging crash (https://www.linuxquestions.org/questions/ubuntu-63/debugging-crash-4175456098/)

rcketscientist 03-29-2013 10:14 PM

Debugging crash
 
I'm using Ubuntu 10.04. I've noticed my server has crashed twice in the past couple days.

From what I've gathered I should look at /var/log/messages for more info on crashes, but mine only has a bunch of restart logs for a date that doesn't make any sense (the server has only been up two weeks):
Code:

Apr 11 05:37:07 test1 syslogd 1.5.0#5ubuntu4: restart.
Apr 25 01:07:36 test1 syslogd 1.5.0#5ubuntu4: restart.
Apr 25 01:07:39 test2 syslogd 1.5.0#5ubuntu4: restart.

I also did "last -x" which at least let me know the culprit was ppp:

Code:

router  ppp0        [ip.ad.dr.ess]  Sat Mar 30 06:52 - 06:54  (00:01)
runlevel (to lvl 2)  2.6.32-042stab07 Sat Mar 30 06:52 - 06:55  (00:02)
reboot  system boot  2.6.32-042stab07 Sat Mar 30 06:52 - 06:55  (00:02)
router  ppp1        [ip.ad.dr.ess]  Sat Mar 30 04:13 - crash  (02:39)
router  ppp0        [ip.ad.dr.ess]  Fri Mar 29 23:13 - 04:13  (05:00)
router  ppp0        [ip.ad.dr.ess]  Fri Mar 29 23:10 - 23:12  (00:01)
router  ppp1        [ip.ad.dr.ess]  Fri Mar 29 23:06 - 23:12  (00:05)
router  ppp0        [ip.ad.dr.ess]  Fri Mar 29 13:37 - 23:08  (09:31)
router  ppp1        [ip.ad.dr.ess]  Fri Mar 29 10:12 - 13:39  (03:26)
router  ppp0        [ip.ad.dr.ess]  Fri Mar 29 08:22 - 10:14  (01:52)
router  ppp1        [ip.ad.dr.ess]  Fri Mar 29 04:45 - 08:23  (03:38)
router  ppp0        [ip.ad.dr.ess]  Fri Mar 29 00:10 - 04:47  (04:36)
anthony  ppp0        [ip.ad.dr.ess]  Thu Mar 28 16:14 - 17:12  (00:57)
router  ppp1        [ip.ad.dr.ess]  Thu Mar 28 16:01 - 00:12  (08:11)
router  ppp0        [ip.ad.dr.ess]  Thu Mar 28 11:16 - 16:03  (04:46)
router  ppp0        [ip.ad.dr.ess]  Thu Mar 28 11:15 - 11:16  (00:01)
runlevel (to lvl 2)  2.6.32-042stab07 Thu Mar 28 11:15 - 06:52 (1+19:37)
reboot  system boot  2.6.32-042stab07 Thu Mar 28 11:15 - 06:55 (1+19:40)
router  ppp0        [ip.ad.dr.ess]  Thu Mar 28 10:08 - crash  (01:06)

Where can I get a decent log for this or how can I set it up to log on the next crash. Thanks!

sag47 03-31-2013 07:18 PM

There's the @reboot alias for cron. See man 5 cron. You could write a script which gathers system info upon reboot in addition to telling you it happened.


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