If you want some kind of alerts, you can do regular checks against db which ones have been offline longer than some treshold. Then after you send the notification, you can save that timestamp to be compared next time if "lastseen" is before or after that (whether you need to send another notification or not..)