Service manual
Appendix G Generating Alarm and Syslog 166
Cyclades-TS Installation & Service Manual
For example, to filter ALARM message with the string “root login”:
filter f_root { facility(local1) and level(info) and match(“ALARM”) and match(“root login”); };
3. to configure actions in syslog-ng configuration file.
Examples (see more details in syslog-ng examples):
to send e-mail: destination d_mail { pipe(“/dev/cyc_alarm” template(“sendmail <pars>”));};
to send pager: destination d_pager {pipe(“/dev/cyc_alarm” template(“sendsms <pars>”));};
to send snmptrap: destination d_trap {pipe(“/dev/cyc_alarm” template(“snmptrap <pars>”)); };
4. to connect filters and actions in syslog-ng configuration file.
Example: alarm is active and if the serial port receives the string “kernel panic”, one message will be sent
to the pager.
log (source(sysl); filter(f_kpanic); destination(d_trap); destination(d_pager); };
2.2. Sendmail
Sendmail sends a message to a SMTP server. It is not intended as a user interface routine; it is used only to
send pre formatted messages. Sendmail reads all parameters in command line.
If the SMTP server does not answer the SMTP protocol requests sent by sendmail, the message is dropped.
Synopsis: sendmail -t <name>[,<name>] [-c <name> [,<name>]] [-b <name> [,<name>]] [-r <name>] -f <name> -
s <text> -m <text> -h <SMTP server> [-p <smtp-port>]
where:
-t <name>[,<name>]