recently had WAN issues reported by Netwatch, would be useful to receive a notification like "Internet was not available from 2PM to 3PM" or "... for 1 hour".
I was thinking about something like:
Code: Select all
:global Uptime; :global Downtime; global Sometime
:set Uptime [/system resource get uptime] #(Added to up script)
:set Downtime [/system resource get uptime] #(Added to down script)
:set $Sometime ($Uptime - $Downtime)
:log info "$Sometime ..."
Any alternative to suggest please?