任何人都知道是否有方法来为每个主机进行各种服务检查?
例如,如果我有hostA和5个不同的服务检查该主机。 这些检查每5分钟发生一次。 我能否让我每分钟都有一张支票,而不是一次支票5张?
更新:在进一步阅读,似乎你可能一直在寻找每个主机选项。 如果是这种情况,不幸的是, service_inter_check_delay_method更多的是一个全局的设置,并没有你可能正在寻找的主机级粒度,我会保留这个post,以防其他人发现它对安装有用。
令人遗憾的是官方文档并没有从Nagios 2移植过来,但是您可以尝试使用Nagiosconfiguration中的service_inter_check_delay_method选项。
旧文件: http : //nagios.sourceforge.net/docs/2_0/checkscheduling.html
# SERVICE INTER-CHECK DELAY METHOD # This is the method that Nagios should use when initially # "spreading out" service checks when it starts monitoring. The # default is to use smart delay calculation, which will try to # space all service checks out evenly to minimize CPU load. # Using the dumb setting will cause all checks to be scheduled # at the same time (with no delay between them)! This is not a # good thing for production, but is useful when testing the # parallelization functionality. # n = None - don't use any delay between checks # d = Use a "dumb" delay of 1 second between checks # s = Use "smart" inter-check delay calculation # x.xx = Use an inter-check delay of x.xx seconds service_inter_check_delay_method=s
因此,而不是默认的“智能”方法尝试像service_inter_check_delay_method=60
注意:默认的智能检查方法工作得很好,如果您select使用静态x延迟检查,一定要做很多testing,以确保这不会以不寻常和有趣的方式泛滥您的networking… 😉