Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
04-29-2006, 05:28 AM
|
#1
|
Member
Registered: Jan 2006
Location: Bakersfield, California
Distribution: CentOS 5.3, FreeBSD 7.2, Fedora 11
Posts: 83
Rep:
|
Syslogd crashing/won't run after webmin bandwidth monitoring...
I seem to have a problem with syslogd. Ever since I've installed webmin and enabled the bandwidth monitoring (iptables rule), syslogd seems to randomly crash after a while, and doesn't seem to run/load at boot. It will also mysteriously shut down in less than five minutes if I start it manually. All the insmod errors and everything from rc.hotplug used to show up in the /var/log/syslog file but now they fly across the screen and nothing from the boot up process is logged.
I also seem to have this 2 GiB "debug" file in /var/log/ now that I've never really noticed before. If I tail the last few lines of the file, it seems to be iptables bandwidth logging, but that doesn't make sense as the bandwidth stuff was supposed to be stored in /var/log/bandwidth and I've verified that it is logged there while everything was working. Also the entries in debug stop the last time syslogd was known to work/run.
I've narrowed it down to the webmin bandwidth monitoring because I've reinstalled and slowly added stuff to see when it broke. The only thing is, I really don't want to go throug another reinstall, so is there anyway to fix syslogd?
Also, is there any other good (free) bandwidth monitoring/logging tools/programs? I just need to monitor bandwidth on the external interface of this box, and it's only a dhcp server, firewall, router and samba server so if the program was inefficient and sucked up cpu cycles it wouldn't matter to me.
Thanks in advance, and let me know if anything doesn't make sense...
-David
|
|
|
04-29-2006, 07:54 AM
|
#2
|
Slackware Contributor
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559
|
If you want simple bandwidth monitoring, then MTRG is more than adequate. It does not need any iptables rules, and reads its information from the interface statistics.
MTRG produces nice graphs.
Eric
|
|
|
04-29-2006, 02:42 PM
|
#3
|
Member
Registered: Jan 2006
Location: Bakersfield, California
Distribution: CentOS 5.3, FreeBSD 7.2, Fedora 11
Posts: 83
Original Poster
Rep:
|
Thanks, I'm looking at MTRG and NTOP right now too see which will be better.
Just one thing, is there anyway to get syslogd to work again? I woke up this morning and looked at the console and it had spit out a bunch of messages (dhcpcd, etc that would normally be logged) on the console even though no one was logged in...
At the very least I've rebooted the machine, everything works fine except syslogd. Is it really that necessary to have it running?
|
|
|
04-29-2006, 03:32 PM
|
#4
|
Slackware Contributor
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559
|
You can edit /etc/syslog.conf and take out the changes.
In essence (stripped of empty lines and comments) this is what should be there in a "virginal" file:
Code:
*.info;*.!warn;\
authpriv.none;cron.none;mail.none;news.none -/var/log/messages
*.warn;\
authpriv.none;cron.none;mail.none;news.none -/var/log/syslog
*.=debug -/var/log/debug
authpriv.* -/var/log/secure
cron.* -/var/log/cron
mail.* -/var/log/maillog
*.emerg *
uucp,news.crit -/var/log/spooler
If yours is different anywhere, revert the changes and then restart syslog, by running
Code:
/etc/rc.d/rc.syslog restart
Eric
|
|
|
05-01-2006, 03:20 AM
|
#5
|
Member
Registered: Jan 2006
Location: Bakersfield, California
Distribution: CentOS 5.3, FreeBSD 7.2, Fedora 11
Posts: 83
Original Poster
Rep:
|
Thanks a million! That got it working again, there were some other "kern.debug" stuff in there.
Also I did a little testing, it seems that when the /var/log/debug file gets to 2GB, syslogd wont run and/or crashes like I mentioned before. Is this a bug of some type or a default behavior? Would it be bad to just stop the debug log from being written in the first place in syslog.conf? Right now I just have a cron job deleting the file every four hours.
Thanks again.
|
|
|
All times are GMT -5. The time now is 03:19 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|