HI
Take a look at the system events
https://docs.imperva.com/bundle/v14.1-system-events-reference-guide/page/3098.htmthere are events under the "System" category to handle fail over - Fail-over occurred - fail over occurred to the secondary server.
you could also look at mx stopped/ started as well in the system events to assist.
thanks
Trevor.
------------------------------
Trevor Jackson
------------------------------