Service manual

Appendix G Generating Alarm and Syslog 162
Cyclades-TS Installation & Service Manual
$FULLDATE - the complete date when the message was sent.
$FACILITY - the facility of the message
$PRIORITY or $LEVEL - the priority of the message
$PROGRAM - the message was sent by this program (BUFFERING or SOCK)
$HOST - the name of the source host.
$FULLHOST - the name of the source host and the source driver. Format: <source>@<hostname>
$MSG or $MESSAGE - the message received
Example to send e-mail to z@none.com (SMTPs IP address 10.0.0.2) from the e-mail address
a@none.com with subject TSxK-ALARM. The message will carry the currante date, the hostname of this
TS and the message that was received from the source.
destination d_mail1 {
pipe(/dev/cyc_alarm
template(sendmail -t z@none.com -f a@none.com -s \TSxK-ALARM\ \ -m \$FULLDATE
$HOST $MSG\ -h 10.0.0.2"));
};
2. To send to pager server (sms server):
destination <ident> {pipe(/dev/cyc_alarm template(sendsms <pars>));};
where ident: uniquely identify this destination
pars : -d <mobile phone number>
-m \<message - max.size 160 characters>\
-u <username to login on sms server>
-p <port sms - default: 6701>
<server IP address or name>
Example to send a pager to phone number 123 (Pager server at 10.0.0.1) with message carrying the
current date, the hostname of this TS and the message that was received from the source:
destination d_pager {
pipe(/dev/cyc_alarm