From 3967bdc5004462d49f8a5edb4c9af03b3907ede2 Mon Sep 17 00:00:00 2001 From: Stephen Smoogen Date: Fri, 23 Jun 2017 20:34:43 +0000 Subject: [PATCH] ok make sure we try ipv4 --- .../files/nagios/configs/minimal.cfg | 4 ++-- .../files/nagios/hosts/templates.cfg | 10 ++++---- .../nagios/hosts/gateway-hosts.cfg.j2 | 24 +++++++++---------- 3 files changed, 19 insertions(+), 19 deletions(-) diff --git a/roles/nagios_server/files/nagios/configs/minimal.cfg b/roles/nagios_server/files/nagios/configs/minimal.cfg index 54c69ae62d..ebb61bcb88 100644 --- a/roles/nagios_server/files/nagios/configs/minimal.cfg +++ b/roles/nagios_server/files/nagios/configs/minimal.cfg @@ -75,7 +75,7 @@ define command{ # Command to check to see if a host is "alive" (up) by pinging it define command{ - command_name check-host-alive + command_name check-host-alive4 command_line $USER1$/check_ping -4 -H $HOSTADDRESS$ -w 300,99% -c 500,100% -p 2 } @@ -198,7 +198,7 @@ define host{ host_name localhost alias localhost address 127.0.0.1 - check_command check-host-alive + check_command check-host-alive4 max_check_attempts 10 notification_interval 120 notification_period 24x7 diff --git a/roles/nagios_server/files/nagios/hosts/templates.cfg b/roles/nagios_server/files/nagios/hosts/templates.cfg index dd4212ea1d..abdc1443b1 100644 --- a/roles/nagios_server/files/nagios/hosts/templates.cfg +++ b/roles/nagios_server/files/nagios/hosts/templates.cfg @@ -1,6 +1,6 @@ define host { name defaulttemplate - #check_command check-host-alive + #check_command check-host-alive4 check_command check-host-alive-nrpe max_check_attempts 8 checks_enabled 1 @@ -16,7 +16,7 @@ define host { define host { name mincheck - check_command check-host-alive + check_command check-host-alive4 max_check_attempts 8 checks_enabled 1 retain_status_information 1 @@ -30,7 +30,7 @@ define host { define host { name autoqatemplate - check_command check-host-alive + check_command check-host-alive4 max_check_attempts 8 checks_enabled 1 retain_status_information 1 @@ -44,7 +44,7 @@ define host { define host { name ppc-secondarytemplate - check_command check-host-alive + check_command check-host-alive4 max_check_attempts 8 checks_enabled 1 retain_status_information 1 @@ -58,7 +58,7 @@ define host { define host { name retracetemplate - check_command check-host-alive + check_command check-host-alive4 max_check_attempts 8 checks_enabled 1 retain_status_information 1 diff --git a/roles/nagios_server/templates/nagios/hosts/gateway-hosts.cfg.j2 b/roles/nagios_server/templates/nagios/hosts/gateway-hosts.cfg.j2 index 708e989d5c..350933e987 100644 --- a/roles/nagios_server/templates/nagios/hosts/gateway-hosts.cfg.j2 +++ b/roles/nagios_server/templates/nagios/hosts/gateway-hosts.cfg.j2 @@ -6,7 +6,7 @@ define host { host_name phx2-gw alias PHX2 Router use mincheck - check_command check-host-alive + check_command check-host-alive4 {% if vars['nagios_location'] == 'internal' %} address 10.5.126.254 {% else %} @@ -23,7 +23,7 @@ define host { host_name ibiblio-gw alias ibiblio gateway use mincheck - check_command check-host-alive + check_command check-host-alive4 address 152.19.134.129 {% if vars['nagios_location'] == 'internal' %} parents phx2-gw @@ -35,7 +35,7 @@ define host { host_name cloud-gw alias cloud gateway use mincheck - check_command check-host-alive + check_command check-host-alive4 address 209.132.184.254 {% if vars['nagios_location'] == 'internal' %} parents phx2-gw @@ -48,7 +48,7 @@ define host { host_name bodhost-gw alias bodhost gateway use mincheck - check_command check-host-alive + check_command check-host-alive4 address 174.141.234.1 {% if vars['nagios_location'] == 'internal' %} parents phx2-gw @@ -62,7 +62,7 @@ define host { host_name coloamer-gw alias coloamerica gateway use mincheck - check_command check-host-alive + check_command check-host-alive4 address 67.203.2.65 {% if vars['nagios_location'] == 'internal' %} parents phx2-gw @@ -77,7 +77,7 @@ define host { host_name dedicated-gw alias dedicated solutions gateway use mincheck - check_command check-host-alive + check_command check-host-alive4 address 67.219.144.65 {% if vars['nagios_location'] == 'internal' %} parents phx2-gw @@ -92,7 +92,7 @@ define host { host_name host1plus-gw alias host1plus gateway use mincheck - check_command check-host-alive + check_command check-host-alive4 address 185.141.164.1 {% if vars['nagios_location'] == 'internal' %} parents phx2-gw @@ -107,7 +107,7 @@ define host { host_name internetx-gw alias internetx gateway use mincheck - check_command check-host-alive + check_command check-host-alive4 address 85.236.55.1 {% if vars['nagios_location'] == 'internal' %} parents phx2-gw @@ -122,7 +122,7 @@ define host { host_name osuosl-gw alias osuosl gateway use mincheck - check_command check-host-alive + check_command check-host-alive4 address 140.211.169.193 {% if vars['nagios_location'] == 'internal' %} parents phx2-gw @@ -137,7 +137,7 @@ define host { host_name rdu-gw alias rdu gateway use mincheck - check_command check-host-alive + check_command check-host-alive4 address 128.109.70.198 {% if vars['nagios_location'] == 'internal' %} parents phx2-gw @@ -152,7 +152,7 @@ define host { host_name rdu-cc-gw alias rdu community cage gateway use mincheck - check_command check-host-alive + check_command check-host-alive4 address 8.43.85.254 {% if vars['nagios_location'] == 'internal' %} parents phx2-gw @@ -167,7 +167,7 @@ define host { host_name tummy-gw alias tummy gateway use mincheck - check_command check-host-alive + check_command check-host-alive4 address 66.35.62.174 {% if vars['nagios_location'] == 'internal' %} parents phx2-gw