示例:使用非标准系统日志消息触发事件策略
在事件 KERNEL 策略中引用系统日志消息。只有在 raise-trap 包含 then 与 KERNEL "在信号 11 上退出"匹配的消息的事件时,语句中的操作才执行。
[edit event-options]
policy kernel-policy {
events KERNEL;
attributes-match {
KERNEL.message matches "exited on signal 11";
}
then {
raise-trap;
}
}