I’m sorry Thomas … the hint with unixsocket won’t work if Monit is used with M/Monit as M/Monit uses only TCP to connect to Monit. If Docker shares the same IP for multiple containers, you’ll need to set unique TCP port for each Monit instance in the “set httpd port <xyz>” statement.
Can you point me to specific configuration/setup examples for Monit / Docker? While we can get inbound events to flow into M/Monit connecting back to the Monit agent has presented a challenge. We are happy to read through anything that describes this
No port is specified for the socket? When we tried to include port it said “syntax error”. Same for SSL. We removed those for now.
Regarding the port 2812 issues ... you can use unixsocket as an option to TCP port for Monit HTTP (added in Monit 5.12 specifically because of Docker networking specifics).
Regarding the setup - yes, the classic active-passive cluster (hot-cold) is possible.