2016-04-18 28 views
0

我想設置由我的nagios服務器發送的每個通知發送間隔6小時的時間間隔。但用我目前的設置,似乎命令間隔設置爲1小時。這是我的服務器監控和我如何使用它的默認模板。Nagios設置更高的通知間隔

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小時。

enter image description here

回答

1

通過服務或主機的警報來警報?可能是您的服務notification_interval設置爲1小時。

+0

哦,很高興知道它們是單獨的對象,我現在沒有訪問我的Nagios服務器,但我會用我的服務定義更新我的文章。 – Alex

+0

如果我直接在服務中設置它,它似乎可以完成這項工作。儘管根據此[頁面](https://assets.nagios.com/downloads/nagioscore/docs/nagioscore/3/en/objectinheritance.html),服務應該從主機繼承它。 @Will – Alex

+0

您是否在服務的頂部設置了「使用」變量?如果是這樣,它將繼承那裏的值,通常就像「use linux_service」一樣。如果你沒有使用「use」值,那麼它會從主機定義中繼承它 –