LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices

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

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


Background:
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:

Code:
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:
Code:
echo '<13> Can you hear me now?' | nc -w 3 -v -u 10.3.120.38 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:

Code:
modprobe netconsole netconsole="6665@10.30.120.138/eth0,514@10.3.120.38/00:01:02:F5:D1:50"
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.

thanks

Doug
 
Old 12-06-2007, 05:47 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,965
Blog Entries: 11

Rep: Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865
Sorry, I cannot comment on netconsole (never used it), but you could set-up
syslog-ng, and remote logging is just fine.



Cheers,
Tink
 
  


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 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


All times are GMT -5. The time now is 01:10 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration