A PowerShell app that runs under a Cron job to check the uptime health of a custom range of website/web app services.
A minimum of PowerShell 7.0 must be installed in order to run this app.
Before you can run the app, you must ensure that the SmtpConfig.json file exists in the same directory as the App.ps1 file. The structure of this file must look like this (example values may vary):
{
"$schema": "./SmtpConfig.schema.json",
"Server": "smtp.example.com",
"Port": 587,
"Username": "noreply@example.com",
"Password": "",
"NoReplyEmailAddress": "noreply@example.com",
"AlertReceiverEmailAddress": "admin@example.com"
}pwsh ./App.ps1docker build -t darian-benam/webmonitor-pro .
docker run -d darian-benam/webmonitor-pro
NOTE: By default, WebMonitor Pro is scheduled to run every 6 hours according to its Cron job configuration.