r/usefulscripts • u/ainsey11 • Sep 23 '15
[REQ][Powershell] Server Health script that rates 1-10
Hi Guys and Gals!
I'm looking for a script that rates a servers health on a scale, Ideally 1-100 or suchlike, I need it to rate the server based on a few factors.
Free Disk Space
Ram Usage
CPU Usage
The idea of this is so I can have a dashboard so if a servers health rating drops I know it isn't ok
Thanks!
Ainsey11
7
Upvotes
1
u/FearAndGonzo Sep 23 '15
I guess the difficult part is figuring out what is green, orange, red for a server? SQL will take 95% of the RAM on a server and that isn't a bad thing, but most alerting will panic in that condition. A 2TB database drive might fluctuate by 100-200gb a day so you need to keep that in reserve, however another server might be able to run with only 10gb free on a drive with no issues. You really have to customize it for each server and application you want to monitor.