Service manual

165Appendix G Generating Alarm and Syslog
Cyclades-TS Installation & Service Manual
log { source(sysl); source(s_udp); filter(f_messages); destination(d_messages); };
4. To send e-mail if message received from local syslog client has the string kernel panic:
log { source(sysl); filter(f_kpanic); destination(d_mail1); };
5. 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); };
6. To send messages with facility kernel and received from syslog clients (local and remote) to remote
syslogd:
log { source(sysl); source(s_udp); filter(f_kern); destination(d-udp1); };
2. Alarm, Sendmail, Sendsms and Snmptrap
2.1. Alarm
This feature is available only in the Console Server Application.
TS sends messages using pager, e-mail or snmptrap if the serial port receives message with specific string.
To configure this feature you will need:
1. to activate alarm in Portslave configuration file (parameter all.alarm - 0 inactive or <> 0 active)
2. to configure filters in syslog-ng configuration file:
filter f_alarm { facility(local[0+DB_facility]) and level(info) and match(ALARM) and match(<your string>);
} ;
For example, to filter ALARM message with the string kernel panic:
filter f_kpanic { facility(local1) and level(info) and match(ALARM) and match(kernel panic); };