Download Black Box
Transcript
Secure Console Port Server SSH 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 [email protected] (SMTP’s IP address 10.0.0.2) from the e-mail address [email protected] with subject “ALARM”. The message will carry the currante date, the hostname of this Secure Console Port Server SSH and the message that was received from the source. destination d_mail1 { pipe(“/dev/cyc_alarm” template(“sendmail -t [email protected] -f [email protected] -s \”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 Secure Console Port Server SSH and the message that was received from the source: destination d_pager { Appendix G Generating Alarm and Syslog 163