Just use a relay on each phase with the contacts wired in series so that if one phase shuts down that relay opens its contacts ans shuts off what ever primary power system to what ever it is that you are controling.
But yes, far more information would be much more helpful.
System voltage, amps, what is it controlling, and what is being powered.