Service manual
161Appendix G Generating Alarm and Syslog
Cyclades-TS Installation & Service Manual
• template(“string”) - syslog-ng write the “string” in the file. You can use the MACROS in the string.
c) unix-stream(filename) and unix-dgram(filename)
- this driver sends messages to a unix socket en either SOCKET_STREAM or SOCK_DGRAM mode.
d) udp (“<ip address>” port(number)) and tcp (“<ip address>” port(number))
- this driver sends messages to another host (ip address/port) using either UDP or TCP protocol.
e) usertty(<username>)
- this driver writes messages to the terminal of a logged-in username.
f) program(<program name and arguments>)
- this driver fork()’s executes the given program with the arguments and sends messages down to the
stdin of the child.
Some examples:
1. To send e-mail:
destination <ident> { pipe(“/dev/cyc_alarm” template(“sendmail <pars>”));};
where ident: uniquely identify this destination
pars: -t <name>[,<name>]: To address
[-c <name>[,<name>]]: CC address
[-b <name>[,<name>]]: Bcc address
[-r <name>[,<name>]]: Reply-to address
-f <name>: From address
-s \”<text>\”: Subject
-m \”<text message>\”: Message
-h <IP address or name>: SMTP server
[-p <port>]: port used. default: 25
To mount the message, use this macros: