【问题标题】:Nagios set higher interval for notificationsNagios 设置更高的通知间隔
【发布时间】:2016-04-18 00:15:45
【问题描述】:

我想将我的 nagios 服务器发送的每个通知的间隔设置为 6 小时间隔。但是根据我当前的设置,命令间隔似乎设置为 1 小时。这是我的服务器监控的默认模板以及我如何使用它。

define host{
    name                            linux-vps           
    use                             generic-host            
    check_period                    24x7        
    check_interval                  5       
    retry_interval                  1       
    max_check_attempts              10      
    check_command                   check-host-alive
    notification_period             24x7    
    notification_interval           360      
    notification_options            d,r     
    contact_groups                  admins  
    register                        0                      
}

define host{
    use                             linux-vps
    host_name                       linux-server
    alias                           CentOS 6
    address                         xxx.xxx.xxx.xxx
}

在 Nagios 服务器上,配置显示主机通知间隔设置为 6 小时。

【问题讨论】:

    标签: monitoring nagios


    【解决方案1】:

    警报是通过服务警报还是主机警报发出的?可能是您的服务 notification_interval 设置为 1 小时。

    【讨论】:

    • 哦,很高兴知道它们是独立的对象,我现在无法访问我的 Nagios 服务器,但我会用我的服务定义更新我的帖子。
    • 如果我直接在服务中设置它似乎可以完成这项工作。虽然,根据这个page,服务应该从主机继承它。 @威尔
    • 您是否在服务顶部设置了“使用”变量?如果是这样,它将从那里继承该值,通常类似于“使用 linux_service”。如果您不使用“使用”值,那么它将从主机定义中继承它
    • 好的,我的主机有一个“use”变量,它有一个“notification_interval”,而我的服务没有“use”变量,但它们确实定义了一个“主机”。这不应该让它从主机继承吗?
    • 在重新检查我在我的服务上使用通用服务模板后,你是对的。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-04-04
    • 2011-05-20
    • 2020-10-22
    • 1970-01-01
    相关资源
    最近更新 更多