
Syslog
264 BLACK BOX ® Advanced Console Server
Some Examples of Defining Actions
1) To send e-mail:
destination <ident> { pipe(‘/dev/cyc_alarm’ template(‘sendmail
<pars>’));};
where ident: uniquely identifies this destination. Parameters:
To mount the message, use this macro:
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.
-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
$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).
Commenti su questo manuale