地方不要有空格
24HoursADay7DaysAWeek00002400
fmo
daytuesdaywed
esdaythursdayfridaysaturday
000024000000240000002400000024000000240000002400
定义联系人创建配置文件co
tactscfgvico
tactscfg
defi
eco
tactco
tact_
amealiasservice_
otificatio
_periodhost_
otificatio
_periodservice_
otificatio
_optio
shost_
otificatio
_optio
sservice_
otificatio
_comma
dshost_
otificatio
_comma
dsemailpageraddress1address2test联系人的名称这个地方不要有空格sysadmi
24x724x7wucrdur
otifyhostbyemail
otifyservicebyemailpe
gxiaoti
etcom137xxxxxxyyyicqcom5555555555
vico
tactgroupscfg
defi
eco
tactgroupco
tactgroup_
ame联系人组的名称同样不能空格aliasmembersSystemAdmi
istratorstest别名sagroup
组的成员来自于上面定义的co
tactscfg如果有多个联系人则以逗号相隔
f定义被监控主机创建文件hostscfg
rootlocalhostetcvihostscfgdefi
ehosthost_
ame被监控主机的名称最好别别空格alias别名addresscheck_comma
d127001被监控主机的IP地址
agiosserver
agiosserver
checkhostalive
监控的命令checkhostalive这个命令来自comma
dscfg用来监控主机是否存活max_check_attempts检检失败后重试的次数check_period24x75
检检的时时段24x7同样来自于我们之前在timeperiodscfg中定义的co
tact_groupssagroup
联系人组上面在co
tactgroupscfg中定义的sagroup
otificatio
_i
terval10
提醒的时隔每隔10秒提醒一次
otificatio
_period24x7
提醒的周期24x7同样来自于我们之前在timeperiodscfg中定义的
otificatio
_optio
sdur
指定什么情况下提醒具体含义义之前co
tactscfg部分的介绍
与联系人可以组成联系人组一样多个主机也可以组成主机组创建文件hostgropscfg
rootlocalhostetcvihostgroupscfgdefi
ehostgrouphostgroup_
amealiasmemberssaservers主机组名称saServers别名
agiosserver
组的成员主机多个主机以逗号相隔必须是上面hostscfg中定义的
f
viservicescfg
servicedefi
itio
defi
eservicehost_
ame
agiosserver
被监控的主机hostscfg中定义的service_descriptio
checkhostalive
这个监控项目的描述也可以说是这个项目的名称可以空格我们这里定义的是监控
这个主机是不是存活
check_comma
d
checkhostalive
所用的命令是comma
dscfg中定义的max_check_attempts
ormal_check_i
tervalretry_check_i
tervalcheck_period3224x75
监控的时时段是timeperiodscfg中定义的
otificatio
_i
terval
otificatio
_period1024x7
通知的时时段是timeperiodscfg中定义的
otificatio
_optio
swucr
在监控的结果是wucr时通知联系人具体含义r