【问题标题】:Why does 'monit' not monitor my process?为什么“监控”不监控我的流程?
【发布时间】:2018-06-27 17:19:03
【问题描述】:

在我的.monitrc 我有

check process macupdate
    matching "MacUpdate *"
    if uptime > 10 minutes then exec "/Users/Rax/Library/Automation/Shell/monit_macupdate"

我可以确认

monit procmatch "MacUpdate *"

找到一个正在运行的进程

/Applications/MacUpdate Desktop.app/Contents/MacOS/MacUpdate Desktop

monit status 报告macupdate 是“未监控”。

为什么 'monit' 不监控我的进程?

【问题讨论】:

    标签: macos monit


    【解决方案1】:

    您的匹配不适用于 monit。

    试试下面的:

    检查进程macupdate 匹配 MacUpdate 如果正常运行时间 > 10 分钟,则执行“/Users/Rax/Library/Automation/Shell/monit_macupdate”

    问候 萨尔曼

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-11-22
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多