So my issue seem related to the icingaweb2 commandtransport.ini configuration file
[icinga2]
transport = "api"
path = "/var/run/icinga2/cmd/icinga2.cmd"
host = "localhost"
port = "5665"
username = "icingaweb2"
password = "redacted"
So after some more digging and googling including
I realized that the answer is simply to configure two command transports with the second one being used as the failover one.