LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   netconsole not sending syslog messages to remote machine (https://www.linuxquestions.org/questions/linux-general-1/netconsole-not-sending-syslog-messages-to-remote-machine-603557/)

cygnus-x1 11-30-2007 01:12 PM

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

Tinkster 12-06-2007 05:47 PM

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



Cheers,
Tink


All times are GMT -5. The time now is 02:11 AM.