How would I log actions that occur during an internet outage and send notifications to my mobile once internet is back up?

I use cron on my raspberry pi. I have it run every 5 minutes (*/5 * * * *). The command I use is “wget[check url] -o /dev/null”. Then in I have a 2 minute grace period set up as you can see in the screenshot of my original post. I’ve been using it for about a year and it has worked flawlessly. There are details for setting it up on cron on their site


Can you share please your sample automation?