资讯

精准传达 • 有效沟通

从品牌网站建设到网络营销策划,从策略到执行的一站式服务

nagios监控配置详解三告警相关模板-创新互联

########################################################################
###定义针对主机的告警条件
########################################################################
# Generic host definition template - This is NOT a real host, just a template!

创新互联公司长期为超过千家客户提供的网站建设服务,团队从业经验10年,关注不同地域、不同群体,并针对不同对象提供差异化的产品和服务;打造开放共赢平台,与合作伙伴共同营造健康的互联网生态环境。为涵江企业提供专业的网站设计制作、成都网站制作涵江网站改版等技术服务。拥有十多年丰富建站经验和众多成功案例,为您定制开发。

define host{
       name   generic-host   ; The name of this host template模板名称,要用在另外一个配置文件里
       notifications_enabled          1      ; Host notifications are enabled
       event_handler_enabled          1      ; Host event handler is enabled
       flap_detection_enabled         1      ; Flap detection is enabled
       failure_prediction_enabled     1      ; Failure prediction is enabled
       process_perf_data              1      ; Process performance data
       retain_status_information      1      ; Retain status information across program restarts
       retain_nonstatus_information   1      ; Retain non-status information across program restarts
 check_command                  check-host-alive
 notification_interval 0 //0关闭重复报警,>0 可重复告警。如果开启重复报警,设置的值需要大于等于正常检查的间隔时间
 normal_check_interval 5 //正常检查间隔时间
 retry_check_interval 1 //重试检查间隔
 max_check_attempts 3 //大重试次数
 check_period  24x7 //检查时间段的名称,具体的时间周期是在timeperiod里设置
 notification_period 24x7 //告警时间段
 notification_options d,u,r //告警状态
 notification_interval 10 //告警间隔
 contact_groups  admins //联系人组
 register                       0      ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL HOST, JUST A TEMPLATE!
       }
########################################################################
###定义针对服务的告警条件,各参数的意义同上所述
########################################################################
# generic service template definition
define service{
       name  generic-service  ; The 'name' of this service template
       active_checks_enabled          1      ; Active service checks are enabled
       passive_checks_enabled         1      ; Passive service checks are enabled/accepted
       parallelize_check              1      ; Active service checks should be parallelized (disabling this can lead to major performance problems)
       obsess_over_service            1      ; We should obsess over this service (if necessary)
       check_freshness                0      ; Default is to NOT check service 'freshness'
       notifications_enabled          1      ; Service notifications are enabled
       event_handler_enabled          1      ; Service event handler is enabled
       flap_detection_enabled         1      ; Flap detection is enabled
       failure_prediction_enabled     1      ; Failure prediction is enabled
       process_perf_data              1      ; Process performance data
       retain_status_information      1      ; Retain status information across program restarts
       retain_nonstatus_information   1      ; Retain non-status information across program restarts
 notification_interval          3 ; Only send notifications on status change by default.
 is_volatile                    0
 check_period                   24x7
 normal_check_interval          3
 retry_check_interval           1
 max_check_attempts             3
 notification_period            24x7
 notification_options           w,u,c,r
 contact_groups                 admins
       register                       0      ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL SERVICE, JUST A TEMPLATE!
       }

另外有需要云服务器可以了解下创新互联scvps.cn,海内外云服务器15元起步,三天无理由+7*72小时售后在线,公司持有idc许可证,提供“云服务器、裸金属服务器、高防服务器、香港服务器、美国服务器、虚拟主机、免备案服务器”等云主机租用服务以及企业上云的综合解决方案,具有“安全稳定、简单易用、服务可用性高、性价比高”等特点与优势,专为企业上云打造定制,能够满足用户丰富、多元化的应用场景需求。


新闻名称:nagios监控配置详解三告警相关模板-创新互联
网站路径:http://cdkjz.cn/article/dcdsco.html
多年建站经验

多一份参考,总有益处

联系快上网,免费获得专属《策划方案》及报价

咨询相关问题或预约面谈,可以通过以下方式与我们联系

大客户专线   成都:13518219792   座机:028-86922220