Update nodemgmt-scripts.sh

This commit is contained in:
2024-08-05 19:58:53 -05:00
parent 84a00dbfea
commit f79d9fc7b3

View File

@@ -26,14 +26,14 @@ fi
OFFSITE_STATICROUTE_FIX(){
if [ -f ${NM_TMPFOLDER}/vpn-tunnel.down.sent ]; then
[ "$(CHECK_HOST_NM 10.5.0.1)" != "true" ] && exit
[ "$(CHECK_HOST 10.5.0.1)" != "true" ] && exit
fi
if [ "$(CHECK_HOST_NM 10.10.0.1)" != "true" ]; then
if [ "$(CHECK_HOST 10.10.0.1)" != "true" ]; then
if [ "$(CHECK_HOST ${NM_OFFSITE_GW_IP})" != "false" ]; then
if [ "$(CHECK_HOST_NM 10.5.0.1)" != "false" ]; then
if [ "$(CHECK_HOST 10.5.0.1)" != "false" ]; then
if [ -f ${NM_TMPFOLDER}/vpn-tunnel.down ]; then
SENDNOTICE "VPN to Homesite is Back Up" "VPN Tunnel is up"
fi