nagios监控配置详解三告警相关模板

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

创新互联公司专注于商水网站建设服务及定制,我们拥有丰富的企业做网站经验。 热诚为您提供商水营销型网站建设,商水网站制作、商水网页设计、商水网站官网定制、小程序定制开发服务,打造商水网络公司原创品牌,更为您提供商水网站排名全网营销落地服务。

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!
        }
 

本文题目:nagios监控配置详解三告警相关模板
URL分享:https://www.cdcxhl.com/article14/isjoge.html

成都网站建设公司_创新互联,为您提供云服务器品牌网站建设商城网站关键词优化全网营销推广企业建站

广告

声明:本网站发布的内容(图片、视频和文字)以用户投稿、用户转载内容为主,如果涉及侵权请尽快告知,我们将会在第一时间删除。文章观点不代表本网站立场,如需处理请联系客服。电话:028-86922220;邮箱:631063699@qq.com。内容未经允许不得转载,或转载时需注明来源: 创新互联

成都网站建设公司