nagios中还有非常丰富的个性配置,这里我们先简单的配置一些,让nagios可以先用起来。
1、文件contactgroups.cfg,用来定义联系人组。多个组员用“,”隔开。
define contactgroup {
contactgroup_name mygroup
alias network administrator group
members feiyang,bb,cc
}
|
2、文件contacts.cfg,用来定义联系人。
define contact {
contact_name feiyang
alias hosts & network administrator
service_notification_period 24x7
host_notification_period 24x7
service_notification_options w,u,c,r
host_notification_options d,u,r
service_notification_commands notify-by-email
host_notification_commands notify-by-email
email XXXX@nagios.net
}
|
3、文件timeperiods.cfg,用来定义时间段
define timeperiod {
timeperiod_name WorkTime
alias 10 Hours A Day, 5.5 Days A Week
sunday 07:30-17:30
monday 07:30-17:30
tuesday 07:30-17:30
wednesday 07:30-17:30
thursday 07:30-17:30
friday 07:30-17:30
saturday 07:30-12:00
}
posted on 2009-05-13 13:51
Blog of JoJo 阅读(91)
评论(0) 编辑 收藏 所属分类:
每日一记