How to send an alert on low disk space

The project below obtains free disk space, compares it with a threshold specified by a parameter and, if free space is below the threshold, sends an email notification.

You can schedule this project to run once every day (our hour) in EasyMorph Server or EasyMorph Launcher. You will need to change the email connector in the example to a working one.

PowerShell also allows running a command on a remote computer using the Invoke-Command cmdlet with the “-ScriptBlock” option. So theoretically obtaining free disk space from a remote computer (and alerting on low space) can be done with EasyMorph too, but I didn’t try that.

low-disk-space-alert.morph (2.4 KB)