diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index fda5c379..da39c3af 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -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