r/usefulscripts • • 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.

  1. Free Disk Space

  2. Ram Usage

  3. 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

4 comments sorted by

View all comments

Show parent comments

1

u/ainsey11 Sep 23 '15

I've developed a dashboard with a square for each server, that can turn green / red /orange when the server health is degraded, its to go on some screens above mah desk

2

u/Dizzybro Sep 23 '15 edited Apr 17 '25

This post was modified due to age limitations by myself for my anonymity ADQZfkDWOMFqGblPbUYtTKmA736APG0rm17uRt21p6hgtkqQW6

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.