Skip to content
Snippets Groups Projects
Commit f662d715 authored by Simon Michnowicz's avatar Simon Michnowicz
Browse files

improved name for NHC_NAT_CHK_EXTERNAL_IP_ADDRESS

Former-commit-id: 2c67e5d4
parent 790edbe5
No related branches found
No related tags found
No related merge requests found
......@@ -12,7 +12,9 @@ nhc_emails: nobody@nowhere.nowhere
nhc_email_subject: "Node Health Check"
In addition the NAT check needs two variables to be defined to be enabled (See example)
- ADD_NHC_NAT_CHECK has to be defined to (any) value
- NHC_NAT_CHK_EXTERNAL_IP_ADDRESS is the address to be pinged
Example:
roles:
- { role: nhc, EXTERNAL_IP_ADDRESS: "118.138.246.208", ADD_NHC_NAT_CHECK: 1 }
- { role: nhc, NHC_NAT_CHK_EXTERNAL_IP_ADDRESS: "118.138.246.208", ADD_NHC_NAT_CHECK: 1 }
......@@ -7,7 +7,7 @@ function check_nat() {
#test NAT by pinging an external IP ADDRESS
PING_EXTERNAL="ping -c 2 {{ EXTERNAL_IP_ADDRESS }}"
PING_EXTERNAL="ping -c 2 {{ NHC_NAT_CHK_EXTERNAL_IP_ADDRESS }}"
$PING_EXTERNAL
RESULT=$?
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment