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

improved name for NHC_NAT_CHK_EXTERNAL_IP_ADDRESS

parent 6bfaa5a4
No related branches found
No related tags found
1 merge request!202check to see if NAT is working by pinging hpc-lic0
...@@ -12,7 +12,9 @@ nhc_emails: nobody@nowhere.nowhere ...@@ -12,7 +12,9 @@ nhc_emails: nobody@nowhere.nowhere
nhc_email_subject: "Node Health Check" nhc_email_subject: "Node Health Check"
In addition the NAT check needs two variables to be defined to be enabled (See example) 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: Example:
roles: 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() { ...@@ -7,7 +7,7 @@ function check_nat() {
#test NAT by pinging an external IP ADDRESS #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 $PING_EXTERNAL
RESULT=$? 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