Server Health Check (CPU Load, RAM and C: Drive Usage) with SSL Email Report

Script that outputs CPU Load, RAM Usage, and C: Drive Usage for all servers listed. The results are sent in an e-mail report, which supports SSL.

 
 
 
 
 
4 Star
(1)
1,636 times
Add to favorites
3/31/2016
E-mail Twitter del.icio.us Digg Facebook
Sign in to ask a question


  • Output is different when ran as a scheduled task
    1 Posts | Last post December 03, 2018
    • Hi Victor,
      
      Your script runs beautifully and displays everything properly when I run the PS script manually but if I run it as a scheduled task it displays things much differently in the report and incorrect values.  How can I adjust the script to display the same way when I run it as a scheduled task?  Thanks in advance.
  • Script to Get the Last 1 hour average CPU utilization
    1 Posts | Last post June 28, 2018
    • Hi Victor,
      
      can you please share the modified script to get the average CPU Utilization last One Hour.
      
      Thanks in Advance.
      
      Ashish R
  • I want to add all the disk
    1 Posts | Last post July 14, 2017
    • As of now it is calculating space only on C drive. But our server has more drive. could you please update the code here. 
  • Hi Victor
    1 Posts | Last post May 09, 2017
    • Can we get the output in single CSV table for 7 days? I am looking create a weekly avg report for memory and cpu?
  • Display the html image and the description in the same alert mail
    2 Posts | Last post February 16, 2017
    • Hi Victor
      
       First of all thanks for providing the such a nice script. I was followed your script and I will get the result as followed two mail notifications.
      
      First mail notification:
      
      "Hi Team, 
       
       The Memory utilization is >80% in the server: << Server Name >>. Your immediate action may be required to clear this alert. 
       
      Thanks & Regards 
      SharePoint Support."
      
      Second mail notification:
       
      html table format.
      
      Query:
      
      My request is I want to get the above two results in a single alert mail means in a single alert mail first html table display then "The Memory utilization is >80% in the server: << Server Name >>. Your immediate action may be required to clear this alert." will follow this message. So is there any possibility to get that with your script.
      
    • MemLoad = [double]$OS.MemoryUsage in below section
      
      $result += [PSCustomObject] @{ 
              			ServerName = $computername
              			CPULoad = $AVGProc.Average
              			MemLoad = $OS.MemoryUsage
          			      }
      
      It will resolved RED Color issue.
  • Color always RED
    2 Posts | Last post February 16, 2017
    • Not sure why but even though all three of the percentages are below 70%, it's still setting the color to red. 
    • MemLoad = [double]$OS.MemoryUsage in below section
      
      $result += [PSCustomObject] @{ 
              			ServerName = $computername
              			CPULoad = $AVGProc.Average
              			MemLoad = $OS.MemoryUsage
          			      }
      
      It will resolved RED Color issue.
  • Percentages are below 50%, still showing red color
    2 Posts | Last post February 15, 2017
    • Hi Victor,
      
      Can you please provide solutions for the Percentages are below 50%, still showing red color in the table format.
      
      Thanks & Regards,
      Pankaj
    • Hi All,
      
      I have checked the code again for the incorrect highlighted values in the table, 
      The datatype of MemLoad is taking as string value(it should be double) to solve the issue.
      below is the correct line 
      
      MemLoad = [double]$OS.MemoryUsage in below section
      
      $result += [PSCustomObject] @{ 
              			ServerName = $computername
              			CPULoad = $AVGProc.Average
              			MemLoad = $OS.MemoryUsage
          			      }
      
      It resolved my issue.