Wuhai’s Weblog

June 22, 2010

rsyslog and syslog-ng

Filed under: Linux,Suse — wuhai @ 4:53 am

Refer: http://www.novell.com/coolsolutions/feature/18044.html

Tried to integrate syslog-ng relay client with rsyslog server, and it is working fine.

Suse Enterprise Linux 10 uses syslog-ng. On mgmt node of IBM BCU, setup syslog-ng in file ‘/etc/syslog-ng/syslog-ng.conf.in’:

src:
udp(ip(“0.0.0.0″) port(514));
tcp(ip(“mgmt_node_ip”) port(5140) keep-alive(yes) max-connections(100));

At the end of this file:
destination std {
# file(“/var/log/HOSTS/$YEAR-$MONTH/$HOST/$FACILITY-$YEAR-$MONTH-$DAY” owner(root) group(root) perm(0600) dir_perm(0700) create_dirs(yes));
tcp(“rsyslog_hostname” port (514));
};
log {
source(src);
destination(std);
};

SuSEconfig –module syslog-ng
/etc/init.d/syslog restart

From internal nodes:

vi /etc/syslog-ng/syslog-ng.conf.in:

destination loghost {
tcp(“mgmt_node_ip” port(5140));
};
log {
source(src);
destination(loghost);
};

SuSEconfig –module syslog-ng

/etc/init.d/syslog restart

October 22, 2009

Suse – ifplugstatus

Filed under: Suse — wuhai @ 5:48 pm

# ifplugstatus
lo: link beat detected
eth0: link beat detected
eth1: link beat detected
eth2: link beat detected
sit0: unplugged

Theme: Rubric. Blog at WordPress.com.

Follow

Get every new post delivered to your Inbox.