Disk Space and Services Threshold Monitoring

As Technet Gallery is retiring so moving the code to Git Hub. (click below github download link for this script)

https://github.com/VikasSukhija/Downloads/blob/master/Thresholdmonitor.zip

Hi All,

I have recently written a script for one of our Teams & want to share it.

This script reads a config.csv file

ServerName,InstallPath,email,threshold,services

ServerName:- Host name of the server

InstallPath:- Drive to monitor

email:- email to which alerts to be sent

threshold :- threshold at which alert should be sent

services:- tyoe of service to moniitor

In our case they want any service that has oracle in display name.

——————————————————————————————

ServerName,InstallPath,email,threshold,services

server01.labtest.com,d:,vikas.sukhija@labtest.com,10%,Oracle

server02.labtest.com,d:,vikas.sukhija@labtest.com,10%,Oracle

——————————————————————————————

In the Script just add SMTPServer name & from address

$smtpserver = “smtpservername”

$From = “donotreply@labtest.com”

—————————————————————————————-

After configuration is completed just click batch file & you will see the magic

This can be scheduled to run multiple times via task scheduler.

Download & extract the full solution (exple CSV is attached)

just place the extracted solution any where & edit the parameters as described above.

 

Thanks for reading …

Tech Wizard

https://techwizard.cloud

https://www.syscloudpro.com/

PowerShell Cheat Book

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s