【问题标题】:Is there a way to stop monit from sending monitor and unmonitor email messages有没有办法阻止 monit 发送监控和取消监控电子邮件
【发布时间】:2018-09-25 17:49:14
【问题描述】:

我最近开始使用Monit 来监控一些生产机器。它做得很好。但我遇到的烦人问题是,例行程序的一部分是每天轮流重启一次服务器,每次重启都会生成 unmonitormonitor 消息。

我找不到特定的alert 设置来关闭它,因此我被正确但不必要的消息轰炸了。似乎没有与此相关的特定事件。

有人知道这样做的方法吗?为了清楚起见,我想告诉 monit 取消监视服务器/任务,重新启动或做某事,然后重新启动服务器/任务,然后再次监视它。但我不想知道 unmonitor 或 monitor,只知道失败的情况。

【问题讨论】:

    标签: monit


    【解决方案1】:

    您可以禁用一般用户操作的警报,例如 monitrc 状态:

    ## Do not alert when Monit starts, stops or performs a user initiated action.
    ## This filter is recommended to avoid getting alerts for trivial cases.
    #
    # set alert your-name@your.domain not on { instance, action }
    

    文档:https://mmonit.com/monit/documentation/monit.html#Setting-an-event-filter

    【讨论】:

      猜你喜欢
      • 2010-12-04
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-10-19
      • 2021-06-12
      • 2017-03-24
      相关资源
      最近更新 更多