温馨提示×

温馨提示×

您好,登录后才能下订单哦!

密码登录×
登录注册×
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》

nagios监控配置详解一联系人

发布时间:2020-05-28 20:36:18 来源:网络 阅读:743 作者:jaty0817 栏目:移动开发

###############################################################################
# contacts.cfg
###############################################################################

 

###############################################################################
###############################################################################
# CONTACTS 定义联系人名称(可以包含多个联系人)
#如果定义多个类型的联系人,添加多个define contact{}即可。针对多级告警
###############################################################################
###############################################################################

# In this simple config file, a single contact will receive all alerts.

define contact{
        contact_name             jiankong //名称
        alias                           jiankong //别名
        service_notification_period     24x7  //服务告警时间段的名称
        host_notification_period        24x7  //主机告警时间段的名称
#w-warning警告,u-unknown未知,c-critical宕机,r-recovery恢复
 service_notification_options    w,u,c,r  //服务告警状态
#d-down宕机,u-unknown未知,r-recovery恢复
        host_notification_options       d,u,r  //主机告警状态
        service_notification_commands   notify-service-by-email  //服务告警执行命令
        host_notification_commands      notify-host-by-email  //主机告警执行命令
        email                           iwo@139.com,test@test.com //联系人,添加多个用逗号隔开
        }

 

###############################################################################
###############################################################################
#
# CONTACT GROUPS定义联系人权限。默认为系统管理员,也可以添加BOSS。
#
###############################################################################
###############################################################################

# We only have one contact in this simple configuration file, so there is
# no need to create more than one contact group.

define contactgroup{
        contactgroup_name       admins
        alias                   Nagios Administrators
        members                 jiankong
        }
 

向AI问一下细节

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

AI