Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 11-30-2007, 01:12 PM   #1
Registered: Jul 2006
Location: Crisfield
Distribution: Slackware, CentOS, RedHat
Posts: 159

Rep: Reputation: 15
netconsole not sending syslog messages to remote machine

I have installed netconsole on 2 different machines, one on the same network (call it machine A) and one on another (call it machine B).

I tested by doing this:

sysctl -w kernel.printk="7 4 1 7"  #set console log message level for testing
modprobe tun
This sent the message over to my remote server just fine.
I also manually sent a syslog message using netcat this way:
echo '<13> Can you hear me now?' | nc -w 3 -v -u 514
This worked great too.

So on machine B (other network) I installed netconsole. I ran the netcat test and that works fine. However whenever I generate messages via modprobe or logging in with ssh NONE of these messages that appear in /var/log/messages on machine B were sent over to the remote server.

Here is how I installed netconsole:

modprobe netconsole netconsole="6665@,514@"
On machine B where I have the problem I even changed the nc to use the source port 6665.

Can anyone offer any ideas as to why the netcat will send messages remotely but the netconsole messages won't go remotely?

machine A is CentOS 4.5, Remote Console Logger and machine B are both CentOS 5

Any and all ideas are welcome.


Old 12-06-2007, 05:47 PM   #2
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
Sorry, I cannot comment on netconsole (never used it), but you could set-up
syslog-ng, and remote logging is just fine.



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 On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Getting SELinux to allow remote syslog messages simplified Linux - Security 3 07-13-2007 06:16 PM
loging syslog messages to a Remote Server nevxille Linux - Newbie 1 10-18-2006 06:12 AM
syslog to accept remote messages ilnli Linux - Software 1 08-02-2006 06:19 AM
netconsole stops sending scotler Linux - Networking 0 06-07-2006 09:02 AM
cron error messages from remote machine artman62 Linux - Networking 1 02-14-2003 11:36 AM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:29 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration