Service manual
Appendix G Generating Alarm and Syslog 174
Cyclades-TS Installation & Service Manual
};
# Example to send a Link Down trap to server at 10.0.0.1 with message carrying the current
# date, the hostname of this TS and the message that received from the source:
destination d_trap {
pipe(“/dev/cyc_alarm”
template(“snmptrap -v 1 10.0.0.1 public \”\” \”\” 2 0 \”\” \
.1.3.6.1.2.1.2.2.1.2.1 s \”$FULLDATE $HOST $MSG\” “););
};
# To send e-mail and snmptrap if message received from local syslog client has the string “kernel panic”:
log { source(sysl); filter(f_kpanic); destination(d_mail1); destination(d_trap); };
# To send e-mail and pager if message received from local syslog client has the string
# “root login”:
log { source(sysl); filter(f_root); destination(d_mail1); destination(d_pager); };
5. Syslog-ng configuration to use with multiple remote syslog servers
This configuration example is to use multiple remote syslog servers.
In the pslave.conf file the facility parameter is configured as:
conf.facility 1
The syslog-ng.conf file need these lines:
# local syslog clients
source src { unix-stream(“/dev/log”); };