Does anyone currently using SCOM/SquaredUP use a monitor/dashboard to report on servers that have uptime greater than x days. This would be useful in catching anything that was missing from the usual patching schedule.
Yes, we have one for that exact reason for 40 days.
You can do this by creating a monitor using ‘simple thresholds’ the slight flaw is, that if you have to vape the local health cache it will close the alert, however it will check again X hours later and re-open it.
There is another way you can do it via PowerShell and actually looking at the ‘net server statistics’ uptime and comparing it to the current date and time, but it wasn’t worth the effort to re-invent the wheel seeing as it’s been in place for a long time.
See the pictures below for the details.
From there we get a little fancy with it. We have a powershell script that runs every hour as a windows tasks, is searches SCOM for that alert ‘Windows server uptime exceeded’ and then it converts the alert from ‘new’ to a custom state.
We then have a dash in Squared Up which simply displays all the alerts with that state..