1
General Discussion / Monit specify ping interface
« on: July 15, 2024, 02:22:09 pm »
Hi all,
I have a Service monitoring using Monit with "Remote Host" type. I also have an OpenVPN Client setup, and would like to monitor a remote host via this tunnel. However, when I add the service, it goes through the WAN default route, instead of the OpenVPN client. I tried to force it via an explicit route, but it still the same. Do you know if there is any way to force monit to ping using a specific source iP? otherwise is there a workaround using some magic routing?
I have a Service monitoring using Monit with "Remote Host" type. I also have an OpenVPN Client setup, and would like to monitor a remote host via this tunnel. However, when I add the service, it goes through the WAN default route, instead of the OpenVPN client. I tried to force it via an explicit route, but it still the same. Do you know if there is any way to force monit to ping using a specific source iP? otherwise is there a workaround using some magic routing?