Hi Travis,
Hope you are doing well.
When DE switches from primary to standby there are SNMP messages not sure if you could use those.
I also forced a fail over on our LAB env and I found these messages in the tracelog and stdout.txt log
c80001> grep -a 'Switching Roles' *
grep: buffer: Is a directory
tracelog.txt:20180309 14:10:15.777 [essential] [INFO] RMI TCP Connection(25828)-161.222.54.43: [2018-03-09_14:10:15.777] New StatusMessage: [date: Fri Mar 09 14:10:15 CST 2018, type: SNMP, description: "Cybermation ESP or ESPresso terminate trap", variables: "Node type" = CA Workload Automation DE, "Extended status" = UXLAB1080:7500: Switching Roles, "Primary manager name and address" = localhost:162, "Node name" = Returning to STANDBY mode by change role command, "Node version" = 12.0.02.00]
tracelog.txt:20180309 14:10:15.804 [essential] [INFO] RMI TCP Connection(25828)-161.222.54.43: [2018-03-09_14:10:15.804] New status message is inserted: [date: Fri Mar 09 14:10:15 CST 2018, type: SNMP, description: "Cybermation ESP or ESPresso terminate trap", variables: "Node type" = CA Workload Automation DE, "Extended status" = UXLAB1080:7500: Switching Roles, "Primary manager name and address" = localhost:162, "Node name" = Returning to STANDBY mode by change role command, "Node version" = 12.0.02.00]
tracelog.txt:20180309 14:10:15.804 [snmp] [INFO] RMI TCP Connection(25828)-161.222.54.43: [2018-03-09_14:10:15.804] Sending SNMP Trap: 4 - [CA Workload Automation DE, 12.0.02.00, Returning to STANDBY mode by change role command, localhost:162, UXLAB1080:7500: Switching Roles]
tracelog.txt:Parameter 5: UXLAB1080:7500: Switching Roles
uxlab1080:/opt/dseries/WA/logs
c80001>
uxlab1080:/opt/dseries/WA/logs
c80001> cat stdout.txt
2018-03-09 14:10:15.767 -> Performing a CHANGE ROLE.
Variable Manager Component has stopped: 2018-03-09 14:10:15.829
Resource Manager Component has stopped: 2018-03-09 14:10:15.83
Workstation Component has stopped: 2018-03-09 14:10:15.851
Application Manager Component has stopped: 2018-03-09 14:10:15.857
Scheduler Component has stopped: 2018-03-09 14:10:15.939
Configuration Component has stopped: 2018-03-09 14:10:15.94
Workstation Component is ready: 2018-03-09 14:10:16.835
Found a primary peer server at UXLAB1081:7599//161.222.54.43_7500_F50012CF-AE1F-474F-9DCD-6C06C3316A90
Running as Standby
uxlab1080:/opt/dseries/WA/logs
c80001>
not sure if you can use any of this but I had time and I thought there had to be a way
Have a good weekend
Sharon