Posted on 2013-01-28
Need a sample powershell script which will check for all drive present in the server and will give the output as green if it's 80% or below ,Amber if it's 90 -95 % and red if it's 95 > above.
It should also check for SQL services, if it's running then it should display as green,if it's other than running state then it should be red
It should check both drive and service check, if all drives are below 80% and service is not running then it should display as red and mention the reason for displaying the corresponding state.
Server1 D: 89% Amber
Server2 mssqlservice is not running Red
server3 All checks are good green
Version i'm using is 1.0