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