nagios配置

weixin_38069146 2011-09-17 08:19:12

define host{
host_name Nagios-Client
alias Nagios Client
address 192.168.140.143
check_command check-host-alive
check_interval 5
retry_interval 1
max_check_attempts 5
check_period 24x7
process_perf_data 0
retain_nonstatus_information 0
contact_groups sagroup
notification_interval 30
notification_period 24x7
notification_options d,u,r
}

define service {
host_name Nagios-Server #hosts.cfg 定义的主机名称
service_description check-host-alive #服务描述
check_period 24x7 #检测的时间段
max_check_attempts 4 #最大检测次数
normal_check_interval 3
retry_check_interval 2
contact_groups sagroup #发生故障通知的联系人组
notification_interval 10
notification_period 24x7 #通知的时间段
notification_options w,u,c,r
check_command check-host-alive
}

请问有必要写这么多么? 还有为什么是不是host里写了还要在service里写啊,好像是如果要对一个主机监控两个服务的时候只需要在host里写一个就行了,别的要在service里写就行了,还有就是报警的什么情况是u 什么情况下是c 什么情况下是r啊。
...全文
16 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复

476

社区成员

发帖
与我相关
我的任务
社区描述
其他技术讨论专区
其他 技术论坛(原bbs)
社区管理员
  • 其他技术讨论专区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧