- 论坛徽章:
- 0
|
20可用积分
最近我修改了一下我的nagios配置
也不知道哪儿修改错了
碰到服务停止的话就不发送邮件了。只有在主机DOWN的时候发送
请教答案啊
添加的内容如下:
host:
define host{
use generic-host ; Name of host template to use
host_name 192.168.3.247
alias WEB TEST
address 192.168.3.247
check_command check-host-alive
max_check_attempts 10
check_period 24x7
notification_interval 5
notification_period 24x7
notification_options d,r
contact_groups admins
}
service:
###############################################
#
#
# 192.168.3.247 WEB
#
#
################################################
define service{
use generic-service ; Name of service template to use
host_name 192.168.3.247
service_description WEB TEST
is_volatile 0
check_period 24x7
max_check_attempts 60
normal_check_interval 2
retry_check_interval 1
contact_groups admins
notification_options w,u,c,r
notification_interval 10
notification_period 24x7
check_command check_http
}
当service的状态是红色的时候就不发送邮件,
service的报错时候,nagios的状态图是这样的:
是soft的
[ 本帖最后由 ppiqq 于 2008-9-25 11:48 编辑 ] |
最佳答案
查看完整内容
max_check_attempts 60这个次数太大了,改小一点吧~
|