
Generating Alarms
182 BLACK BOX ® Advanced Console Server
log (source(sysl); filter(f_kpanic); destination(d_pager);
};
To send e-mail:
destination d_mail { pipe("/dev/cyc_alarm" template("send-
mail <pars>"));};
To send a pager message:
destination d_pager {pipe("/dev/cyc_alarm" template("sendsms
<pars>"));};
To send snmptrap:
destination d_trap {pipe("/dev/cyc_alarm" template("snmptrap
<pars>")); };
Step 4: Connect filters and actions in the 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); };
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 the command
line. If the SMTP server does not answer the SMTP protocol requests sent by sendmail, the
message is dropped.
Komentarze do niniejszej Instrukcji