我目前正在使用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.
}