Hi,
I tried this with monit, but this is not possible.
I need to know when the address of the WAN interface changed.
Monit does only check in intervals and so it is not possible to detect the change.
Here in the forum were several same questions, but no solution.
Any hint?
Best regards.
Likely best to use one of the many scripts available on the Internet for this. For example, https://steven-chau.github.io/2016-03-30-howto-detect-notify-ip-change/