diff --git a/haproxy/avalanche-healthcheck.sh b/haproxy/avalanche-healthcheck.sh index b44b1896..358efc00 100644 --- a/haproxy/avalanche-healthcheck.sh +++ b/haproxy/avalanche-healthcheck.sh @@ -14,10 +14,10 @@ RPT=$4 # RPT=8545 # Run curl with appropriate options -curl -s -X POST -u ${AUTH_HTTP} -H "Content-Type: application/json" -m 2 -d '{"jsonrpc":"2.0","method":"eth_syncing","params": [],"id":1}' http://$RIP:$RPT/avalanche 2>/dev/null | jq '.result' -r | grep -q false +curl -s -X POST -H "Content-Type: application/json" -m 2 -d '{"jsonrpc":"2.0","method":"eth_syncing","params": [],"id":1}' http://$RIP:$RPT/avalanche 2>/dev/null | jq '.result' -r | grep -q false exit1=$? -peers=$(curl -s -X POST -u ${AUTH_HTTP} -H "Content-Type: application/json" -m 2 -d '{"jsonrpc":"2.0","method":"net_peerCount","params": [],"id":1}' http://$RIP:$RPT/avalanche 2>/dev/null | jq '.result' -r) +peers=$(curl -s -X POST -H "Content-Type: application/json" -m 2 -d '{"jsonrpc":"2.0","method":"net_peerCount","params": [],"id":1}' http://$RIP:$RPT/avalanche 2>/dev/null | jq '.result' -r) # If any of the above tests failed, then exit 1. if [[ "$exit1" -ne 0 ]]; then exit 1; fi diff --git a/haproxy/erigon-healthcheck.sh b/haproxy/erigon-healthcheck.sh index e060d8e8..8fb06909 100644 --- a/haproxy/erigon-healthcheck.sh +++ b/haproxy/erigon-healthcheck.sh @@ -14,10 +14,10 @@ RPT=$4 # RPT=8545 # Run curl with appropriate options -curl -s -X POST -u ${AUTH_HTTP} -H "Content-Type: application/json" -m 2 -d '{"jsonrpc":"2.0","method":"eth_syncing","params": [],"id":1}' http://$RIP:$RPT/erigon 2>/dev/null | jq '.result' -r | grep -q false +curl -s -X POST -H "Content-Type: application/json" -m 2 -d '{"jsonrpc":"2.0","method":"eth_syncing","params": [],"id":1}' http://$RIP:$RPT/erigon 2>/dev/null | jq '.result' -r | grep -q false exit1=$? -peers=$(curl -s -X POST -u ${AUTH_HTTP} -H "Content-Type: application/json" -m 2 -d '{"jsonrpc":"2.0","method":"net_peerCount","params": [],"id":1}' http://$RIP:$RPT/erigon 2>/dev/null | jq '.result' -r) +peers=$(curl -s -X POST -H "Content-Type: application/json" -m 2 -d '{"jsonrpc":"2.0","method":"net_peerCount","params": [],"id":1}' http://$RIP:$RPT/erigon 2>/dev/null | jq '.result' -r) # If any of the above tests failed, then exit 1. if [[ "$exit1" -ne 0 ]]; then exit 1; fi diff --git a/haproxy/geth-healthcheck.sh b/haproxy/geth-healthcheck.sh index 1b23e038..8a5c8aac 100644 --- a/haproxy/geth-healthcheck.sh +++ b/haproxy/geth-healthcheck.sh @@ -14,10 +14,10 @@ RPT=$4 # RPT=8545 # Run curl with appropriate options -curl -s -X POST -u ${AUTH_HTTP} -H "Content-Type: application/json" -m 2 -d '{"jsonrpc":"2.0","method":"eth_syncing","params": [],"id":1}' http://$RIP:$RPT/geth 2>/dev/null | jq '.result' -r | grep -q false +curl -s -X POST -H "Content-Type: application/json" -m 2 -d '{"jsonrpc":"2.0","method":"eth_syncing","params": [],"id":1}' http://$RIP:$RPT/geth 2>/dev/null | jq '.result' -r | grep -q false exit1=$? -peers=$(curl -s -X POST -u ${AUTH_HTTP} -H "Content-Type: application/json" -m 2 -d '{"jsonrpc":"2.0","method":"net_peerCount","params": [],"id":1}' http://$RIP:$RPT/geth 2>/dev/null | jq '.result' -r) +peers=$(curl -s -X POST -H "Content-Type: application/json" -m 2 -d '{"jsonrpc":"2.0","method":"net_peerCount","params": [],"id":1}' http://$RIP:$RPT/geth 2>/dev/null | jq '.result' -r) # If any of the above tests failed, then exit 1. if [[ "$exit1" -ne 0 ]]; then exit 1; fi diff --git a/haproxy/goerli-healthcheck.sh b/haproxy/goerli-healthcheck.sh index 46432be2..c0a64155 100644 --- a/haproxy/goerli-healthcheck.sh +++ b/haproxy/goerli-healthcheck.sh @@ -14,10 +14,10 @@ RPT=$4 # RPT=8545 # Run curl with appropriate options -curl -s -X POST -u ${AUTH_HTTP} -H "Content-Type: application/json" -m 2 -d '{"jsonrpc":"2.0","method":"eth_syncing","params": [],"id":1}' http://$RIP:$RPT/goerli 2>/dev/null | jq '.result' -r | grep -q false +curl -s -X POST -H "Content-Type: application/json" -m 2 -d '{"jsonrpc":"2.0","method":"eth_syncing","params": [],"id":1}' http://$RIP:$RPT/goerli 2>/dev/null | jq '.result' -r | grep -q false exit1=$? -peers=$(curl -s -X POST -u ${AUTH_HTTP} -H "Content-Type: application/json" -m 2 -d '{"jsonrpc":"2.0","method":"net_peerCount","params": [],"id":1}' http://$RIP:$RPT/goerli 2>/dev/null | jq '.result' -r) +peers=$(curl -s -X POST -H "Content-Type: application/json" -m 2 -d '{"jsonrpc":"2.0","method":"net_peerCount","params": [],"id":1}' http://$RIP:$RPT/goerli 2>/dev/null | jq '.result' -r) # If any of the above tests failed, then exit 1. if [[ "$exit1" -ne 0 ]]; then exit 1; fi diff --git a/haproxy/rinkeby-healthcheck.sh b/haproxy/rinkeby-healthcheck.sh index ea01f7b5..dea96192 100644 --- a/haproxy/rinkeby-healthcheck.sh +++ b/haproxy/rinkeby-healthcheck.sh @@ -14,10 +14,10 @@ RPT=$4 # RPT=8545 # Run curl with appropriate options -curl -s -X POST -u ${AUTH_HTTP} -H "Content-Type: application/json" -m 2 -d '{"jsonrpc":"2.0","method":"eth_syncing","params": [],"id":1}' http://$RIP:$RPT/rinkeby 2>/dev/null | jq '.result' -r | grep -q false +curl -s -X POST -H "Content-Type: application/json" -m 2 -d '{"jsonrpc":"2.0","method":"eth_syncing","params": [],"id":1}' http://$RIP:$RPT/rinkeby 2>/dev/null | jq '.result' -r | grep -q false exit1=$? -peers=$(curl -s -X POST -u ${AUTH_HTTP} -H "Content-Type: application/json" -m 2 -d '{"jsonrpc":"2.0","method":"net_peerCount","params": [],"id":1}' http://$RIP:$RPT/rinkeby 2>/dev/null | jq '.result' -r) +peers=$(curl -s -X POST -H "Content-Type: application/json" -m 2 -d '{"jsonrpc":"2.0","method":"net_peerCount","params": [],"id":1}' http://$RIP:$RPT/rinkeby 2>/dev/null | jq '.result' -r) # If any of the above tests failed, then exit 1. if [[ "$exit1" -ne 0 ]]; then exit 1; fi diff --git a/haproxy/ropsten-healthcheck.sh b/haproxy/ropsten-healthcheck.sh index 61c7969e..9911db84 100644 --- a/haproxy/ropsten-healthcheck.sh +++ b/haproxy/ropsten-healthcheck.sh @@ -1,4 +1,3 @@ - #!/bin/bash # $1 = Virtual Service IP (VIP) @@ -15,10 +14,10 @@ RPT=$4 # RPT=8545 # Run curl with appropriate options -curl -s -X POST -u ${AUTH_HTTP} -H "Content-Type: application/json" -m 2 -d '{"jsonrpc":"2.0","method":"eth_syncing","params": [],"id":1}' http://$RIP:$RPT/ropsten 2>/dev/null | jq '.result' -r | grep -q false +curl -s -X POST -H "Content-Type: application/json" -m 2 -d '{"jsonrpc":"2.0","method":"eth_syncing","params": [],"id":1}' http://$RIP:$RPT/ropsten 2>/dev/null | jq '.result' -r | grep -q false exit1=$? -peers=$(curl -s -X POST -u ${AUTH_HTTP} -H "Content-Type: application/json" -m 2 -d '{"jsonrpc":"2.0","method":"net_peerCount","params": [],"id":1}' http://$RIP:$RPT/ropsten 2>/dev/null | jq '.result' -r) +peers=$(curl -s -X POST -H "Content-Type: application/json" -m 2 -d '{"jsonrpc":"2.0","method":"net_peerCount","params": [],"id":1}' http://$RIP:$RPT/ropsten 2>/dev/null | jq '.result' -r) # If any of the above tests failed, then exit 1. if [[ "$exit1" -ne 0 ]]; then exit 1; fi