Forum Discussion

ChristiaanBassi's avatar
5 years ago

Configure Server Reboot Alert

I am checking to see if there is an LM alert that can be set up for when a Windows server is rebooted, intentionally or unintentional. We have an SFTP server and would like to be alerted as we have critical file transfers that happen throughout the day and night. I thought about cloning and adjusting the Host Status idleInterval alert to a lower threshold from 300, but unsure.

  • This is simple enough, except there are two issues:

    • the default alert subject is annoying and confusing to clients -- it is easily fixed, but....
    • recovery alerts don't use the custom alert subject so you still get the annoying version for recoveries (unless you need them to ensure ticket closure).

    Luckily, for reboots you don't usually want a recovery alert -- just one alert to let you know it happened. Our catchall is this, with specific versions for each client:

    Our custom version of the alert subject is "##HOST## Rebooted ##VALUE## seconds ago"

  • Just to keep in mind and for others searching the forums, Host Status will tell you if a device stop responding to the collector, not necessarily if the server rebooted. It's possible you can get a host down alert due to something like a network issue, especially if you have to monitor over a vpn connection. The Uptime check can be used to alert on real reboots since it reports the time since the last reboot and you can alert if the uptime is less then X seconds for example. This can also catch situations where you VM reboots very quickly (< 1 minute) where it's possible monitoring will not even catch it.

    But in your case, it does sound like you want to have fast notification on system not responding, regardless of cause. So even something like a fast Ping check would work. Just keep in mind that you can get false positives if you are too aggressive. Also since you are talking about an SFTP server, you might want to add a specific check that tests the SFTP server more directly. Might want to check http://blog.mikesuding.com/2017/04/08/monitor-sftp-site-connection-and-login/