Solved

enable better logging on debian

Posted on 2008-10-03
5
226 Views
Last Modified: 2013-12-06
I have a Debian Etch server and it doesn't seem like its logging any errors.  My server will have an issue and need a manual reboot and when i look in /var/logs the log files wont have any issues logged.  I have a custom kernel so maybe i disabled something that would be better enabled?  Anything you can think of that might have limited my error logging.  I have not modified /etc/syslog.conf or the defaults that the syslogd starts with.

Here my last example.  the server started giving me Connection refused so i rebooted and nothing in logs but marks leading up before the reboot.

0
Comment
Question by:W00dyW00d
  • 3
5 Comments
 
LVL 6

Expert Comment

by:Syngin9
Comment Utility
Is klogd running? (http://www.linuxjournal.com/article/4058)

ps -aux | grep klogd
0
 

Author Comment

by:W00dyW00d
Comment Utility
yes,

root      2622  0.0  0.0   1572   372 ?        Ss   20:58   0:00 /sbin/klogd -x
0
 
LVL 10

Accepted Solution

by:
ampranti earned 500 total points
Comment Utility
Check also this file: /var/log/kern.log

Then try adding this line:
       kern.debug                        /var/log/mydebugs
        or
        *.debug                        /var/log/mydebugs

Be prepared for huge amount of logs
Probably you should increase the severity in steps, until you find the cause of the problem

Keep in mind that if this problems is kenrel based, you may not see anything to logs.
If everything else fails, you may have to redirect all logs produced to serial port and receive them on a laptop. (Serial is usually the last interface that will stop working)
0
 

Author Comment

by:W00dyW00d
Comment Utility
Well thanks for the suggestions, but I have not found the root cause for my issue.  I will have to tell the local tech to figure it out.

Thanks for the help.
0
 

Author Closing Comment

by:W00dyW00d
Comment Utility
Thanks for the suggestion.  Unfortunately I cant find the root of my issue but you did help answer my question.
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

This document is written for Red Hat Enterprise Linux AS release 4 and ORACLE 10g.  Earlier releases can be installed using this document as well however there are some additional steps for packages to be installed see Metalink. Disclaimer: I hav…
1. Introduction As many people are interested in Linux but not as many are interested or knowledgeable (enough) to install Linux on their system, here is a safe way to try out Linux on your existing (Windows) system. The idea is that you insta…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now