Scripting - Monitor disk space, cpu load, memory and send html report through email

Here they are some scripts that monitor CPU, Disk Drives space and others:

1.) Powershell Script to Get CPU,Memory and C Drive utilization(Server Health Check)

a simple powershell script to get CPU Load, Memory utilization and C drive Utilization for a list of servers from a text file. So, this script takes servers from a text file and the result will be displayed in a HTML file and Sends email.


https://gallery.technet.microsoft.com/Powershell-Script-to-Get-78687c5e


https://gallery.technet.microsoft.com/scriptcenter/PowerShell-Script-Sample-f7164554

2.) Disk Space monitoring

a simple powershell script to get CPU. Memory utilization and C drive Utilization for a list of servers from a text file and the result will be displayed in a HTML file and sends email to your mailbox. I Feel It will be useful if you add this as a schedule task and run peridoically, it just reports you with the status to your email.

https://gallery.technet.microsoft.com/fd4f5235-1a80-41ed-87e2-189278fd376c

3.) PowerShell script to report free disk space on servers

script calculates free disk spaces in multiple servers (from a text file) and emails copy of csv report. The script is designed to report only servers with less than 10% free space. Customization info provided. Please rate, leave comments and ask questions.

This PowerShell script calculates free disk spaces in multiple servers and emails copy of  csv report. The script is designed to report only servers with 10% or less free space. If you wish to report all free disk spaces, please comment out the following lines in the swcript: #Where-Object {   ($_.freespace/$_.size) -le '0.1'} - This is found directly beneath the Get-WmiObject win32_logicaldisk command (Around line 50).


https://gallery.technet.microsoft.com/scriptcenter/PowerShell-Script-Sample-f7164554


4.) Monitoring and reporting free disk space and the critical services


This script is designated to collect free disk space on your logical drives and state of some Windows services using PowerShell cmdlets.Also, this script will use local or remote SMTP Server to send the report via e-mail.You can modify srvArray variable to monitor more services.


https://gallery.technet.microsoft.com/PowerShell-and-reporting-3dba70fc


5.) DiskSpace Monitoring

It's an improvement from the original Nag Pal's script


It will retrieve the letter, size, free space (GB), free space (%) from every volume on each server on the server list, and will mark in yellow if the free space is under 20% and in red if it under 10%.


The result file includes the date and also the heeder inside the file.



The improvements were made to include the date and to avoid errors where a server can’t be reached.

https://gallery.technet.microsoft.com/cc8176ab-348b-4152-b9a3-25b6ad950d3e


6.) CPU utilization and notify on a threshold breach

Here is a simple powershell script which will take a list of servers as input, monitors CPU load and sends email notifications incase of threshold breach(which is set in script). You may need to configure this script in scheduled task for continuous monitoring.

https://gallery.technet.microsoft.com/Powershell-script-to-11b10872

<------------>

Otherwise if you review this old post:

http://www.alessandromazzanti.com/2015/09/security-netrwrix-tools-auditing.html

There should be available these netwrix tools:

SYSTEMS MANAGEMENT TOOLS

Netwrix Disk Space Monitor: Be alerted in real-time via email when disk space falls below certain thresholds on one or more of your servers.
Netwrix Event Log Manager: Collect, alert and report on events from the Windows servers across your network.
Netwrix Service Monitor: Monitor services on multiple servers simultaneously and be alerted via email when one or more services stop unexpectedly. Optionally, automatically restart monitored services ensuring maximum uptime.