Hi, i'm trying to get it working with monit but unfortunatelly looks like monit doesn't run the script btw when i run it myself everything works.
Do you have any idea ?
Perhaps there is my command on monit
check host xxxxxx with address xxxxxx
if failed ping4 then exec "/bin/bash -c /etc/monit/SecondaryIP.sh"
else if succeeded then exec "/bin/bash -c /etc/monit/NativeIP.sh"