如何让nagios在晚上和早上不发送消息来发送所有剩余的错误

发布于 2024-09-14 00:59:26 字数 496 浏览 11 评论 0原文

我让 Nagios 检查服务状态并发送有关服务状态的短信。

有些问题晚上不重要,宁愿晚上不发。

define timeperiod{
    timeperiod_name non_work
    alias       Non work hours
    sunday      00:00-24:00
    monday      00:00-09:00,18:00-24:00
    tuesday     00:00-09:00,18:00-24:00
    wednesday   00:00-09:00,18:00-24:00
    thursday    00:00-09:00,18:00-24:00
    friday      00:00-09:00,18:00-24:00
    saturday    00:00-24:00
}

然而,早上我希望所有的问题,而不仅仅是新的问题都会被发送。 我该如何配置呢?

或者nagios没有这个功能?

I have Nagios checking service status and sending SMS messages about service status.

Some problems are not important at night and prefer to not send them at night.

define timeperiod{
    timeperiod_name non_work
    alias       Non work hours
    sunday      00:00-24:00
    monday      00:00-09:00,18:00-24:00
    tuesday     00:00-09:00,18:00-24:00
    wednesday   00:00-09:00,18:00-24:00
    thursday    00:00-09:00,18:00-24:00
    friday      00:00-09:00,18:00-24:00
    saturday    00:00-24:00
}

However, in the morning I would like that all the problems, not just new would be sent.
How can I configure that?

Or nagios do not have this functions?

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

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

发布评论

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

评论(1

撩起发的微风 2024-09-21 00:59:26

据我了解您的问题,您只是不想在夜间收到某些问题的短信,但在工作时间希望收到您本应收到的所有警告 是否发送警告。这不是 Nagios 中内置的内容,但您可以/应该发送给开发社区供考虑。

As I understand your problem, you just don't want to receive text messages during the night for certain problems, but upon work hours want to receive all the warnings you would have received if the warnings were being sent. This isn't something that is built into Nagios, but is something that you can/should send over to the development community for consideration.

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