首页 文章

Monit目录中的所有文件

提问于
浏览
0

是否有可能使用monit运行对目录中所有文件的检查,而不提及此目录中的每个文件本身?

例如:

/ etc / configurations-to-monitor / config1 config2 config3

现在我在/etc/monit/conf.d/myconfigs中使用它:

检查目录myconfigs path / etc / configurations-to-monitor /如果更改了时间戳然后提醒

但是这种结构有一些旁路可能性 . 所以我想在这个目录上运行时间戳和校验和检查 . 目标是向此目录添加更多配置,而无需再次触摸monit配置 .

提前致谢

2 回答

  • 2

    monit中所有缺少功能的解决方案是创建一个可以完成工作的脚本,monit将只检查其返回代码 .

  • 1

    来自monit-general@nongnu.org,于19.11.2014

    Hello, using pattern for multiple files monitoring is not supported currently.
      We plan to add this feature.
    

相关问题