Bri*_*ett 4 monitoring nagios alerts
我在 Nagios 中有一项服务可以检查服务器上使用了多少磁盘空间。
当使用率超过80%时,服务就处于状态warning。当超过97%时才考虑critical。
当服务启动时,warning我想每天发送一次警报 ( notification_interval 1440)。当服务很关键时,我想每两小时发送一次警报 ( notification interval 120)。
我该如何设置?
是否可以在一项服务中进行设置,或者我是否需要定义两项服务,一项为 发送警报,warning另一项为 发送警报critical?
谢谢。
当服务处于状态时,定义服务升级并notification_interval设置为 120 CRITICAL:
define serviceescalation{
host_name xx
service_description disk_free
notification_interval 120
.
.
escalation_period 24x7
escalation_options c
}
Run Code Online (Sandbox Code Playgroud)