我可以设置一些以监视cron作业/脚本的东西吗

发布于 2025-02-07 12:24:11 字数 1565 浏览 2 评论 0原文

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

奢望 2025-02-14 12:24:11

您可以在MONIT中使用类似功能并评估返回代码,而不是使用CRON作业。如果状态失败,则监测将发送邮件。
有关一些其他信息,请参见 https://www.mmonit.com /monit/documentation/monit.html#service-poll-time

MONIT程序无法监视执行的CRON作业。如果将错误消息写入日志文件,则可以使用消息来发送邮件。

Instead of using a cron job you can use a similar function in monit and evaluate the return code. The monit will send a mail if the status fail.
For some additional information see https://www.mmonit.com/monit/documentation/monit.html#SERVICE-POLL-TIME

The monit program can not monitor the executed cron jobs. If error messages are written to a log file monit can use the messages to send a mail.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文