【发布时间】:2014-04-04 02:19:39
【问题描述】:
我测试通知和升级链的常规方法是通过引发故障来模拟故障,例如阻塞端口。
但这完全不能令人满意。我不希望停机时间记录在没有记录的 nagios 中。我也不想等。
有谁知道在不导致中断的情况下测试通知链的方法?例如这样的:
$ ./check_notifications_chain <service|host> <time down>
at <x> minutes notification email sent to group <people>
at <2x> minutes notification email sent to group <people>
at <3x> minutes escalated to group <management>
at <200x> rm -rf; shutdown -h now executed.
扩展这个范例,我可能会让通知链本身成为一个 nagios 检查,但我会在我的大脑爆炸之前停下来。
有人吗?
【问题讨论】:
标签: testing notifications nagios simulate