Setup Syslog
by
zenoss
—
last modified
2007-06-08 09:39
Setup syslog-ng/syslog for Linux and Datagram Syslog Agent for Windows
Setup Syslog
- change your syslog.conf or syslog-ng.conf
- when you setup syslog on your zenoss system, make sure your System syslog is not listening on port 514
syslog.conf
*.warn;mail.none;news.none @<YourZenossIP>
mail.err @<YourZenossIP>
syslog-ng.conf
source zenoss_src {
internal();
unix-dgram("/dev/log");
};
filter zenoss_warn { level(warn, err, crit) and not filter(f_iptables); };
destination zenoss{ udp("<YourZenossIP>" port(514)); };
log { source(zenoss_src); filter(zenoss_warn); destination(zenoss); };
Windows Syslog
Install Datagram Syslog Client http://syslogserver.com on your Windows system.
Just follow setupguide, it is really easy
DEBUGGING
- try $ZENHOME/bin/zensyslog status, it must be running.
- if not check if your system syslog is running on port 514, if yes disable.
- setup syslog sending to zenoss system.
- zry logger -p crit test on remote system
- event must show up
- if not stop zensyslog and start it with $ZENHOME/zensyslog start -v10
- do tail -f $ZENHOME/log/zensyslog.log
- try logger again
- have a look at the output