Hi Luc,
As you are much more qualified than most of us, I don't think I can give you a useful idea, but I can use the opportunity to learn something.
I'm not sure what you actually need, but I have a few ideas that I would use:
- Process the HA alarms; the last one should give an indication on what HA is doing, assuming that HA probe is running, which you can find out with get_status callback;
- Monitor ha.log with logmon, similar to the option above;
- Find out which data_engine probe is running
- Check if primary hub is available