Nagios warning

最近在做线上的nagios监控优化工作,发现线上监控有几个warning内容如下:

Warning: Service 'usr Partition' on host 'luckcart_ss02'  has a notification interval less than its check interval! 
Notifications are only re-sent after checks are made, so the effective notification interval will be that of the check interval.

从警告来看,初步认为是,通知告警的日志设置的,太短导致。

从nagios配置实例来看:

        max_check_attempts              3                       ; Re-check the service up to 3 times in order to determine its final (hard) state
        normal_check_interval           3                       ; Check the service every 10 minutes under normal conditions
        retry_check_interval            2                       ; Re-check the service every two minutes until a hard state can be determined
        contact_groups                  admins                  ; Notifications get sent out to everyone in the 'admins' group
        notification_options            w,u,c,r                 ; Send notifications about warning, unknown, critical, and recovery events
        notification_interval           10                      ; Re-notify about service problems every hour

可以这样子理解,notification_interval设置的时间不能小于重复检测的时间,即retry_check_interval的时间,

如果出现notification_interval小于retry_check_interval的时间,即是,还没有完成重复的检测,就已经发送了告警,而告警的状态还是前一次的状态。

所以,根据需要,调整相关时间,重新检查一个配置文件:

/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg 

OK,一切和谐了。


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值