ping与icmp Icinga2冲突一些主机

我有一个服务组,我真的不知道我是否应该摆脱,因为它似乎使我不可能改变icmp插件的variables。

我估计不需要超过一个ICMP检查。

Object 'ping' of type 'ServiceGroup': % declared in '/etc/icinga2/zones.d/global-templates/service-groups.conf', lines 17:1-17:26 * __name = "ping" * action_url = "" * display_name = "Ping Checks" % = modified in '/etc/icinga2/zones.d/global-templates/service-groups.conf', lines 18:3-18:30 * groups = null * name = "ping" * notes = "" * notes_url = "" * package = "_etc" * templates = [ "ping" ] % = modified in '/etc/icinga2/zones.d/global-templates/service-groups.conf', lines 17:1-17:26 * type = "ServiceGroup" * vars = null * zone = "global-templates" 

/etc/icinga2/zones.d/global-templates/service-groups.conf

 object ServiceGroup "ping" { display_name = "Ping Checks" assign where match("ping*", service.name) } 

Inspect链接的输出显示了ping和icmp如何无意中join。 我的设置最终被传递给ping命令而不是icmp命令。

 command: [ "/usr/lib64/nagios/plugins/check_ping", "-H", "142.31.165.36", "-c", "5000,100%", "-w", "3000,80%" ], 

而icmp得到我需要增加的默认值。

 command: [ "/usr/lib64/nagios/plugins/check_icmp" ], env: null, execute: { type: "Function" }, ha_mode: 0, name: "icmp", original_attributes: null, package: "_etc", paused: false, templates: [ "icmp", "plugin-check-command" ], timeout: 60, type: "CheckCommand", vars: { icmp_address: "$address$", icmp_cpl: 15, icmp_crta: 200, icmp_wpl: 5, icmp_wrta: 100 },