在Monit警报中包含最后一行日志

时间:2012-11-15 13:39:19

标签: monitoring alert monit

我目前正在使用Monit监控Node.JS实例。它运行良好,但我想在出现问题时添加Node.JS实例日志的最后10行。这甚至可能吗?

以下是我格式化邮件的方式:

set mail-format { 
from: email@email
reply-to: donotreply@email.eu
subject: Alert: Amos instance $HOST -- $EVENT
message: $EVENT for service $SERVICE
        Date:       $DATE
        Action:     $ACTION
        Host:       $HOST
        Description:    $DESCRIPTION

This alert was made possible by Monit & this guy.

}

0 个答案:

没有答案