I wanted to use a PowerShell script to send very short text messages via e-mail, and I found an excellent example here:
https://devcentral.f5.com/articles/monitoring-your-network-with-prtg-custom-notifications
The thing is that this script works flawlessly for Up notifications, but Down notifications are not sent and instead initiate the error handling shown at the bottom of the script. I know that I'm missing something simple, but all tinkering has been unsuccessful. I know there's limited support available for custom scripting, but if anyone could just take a quick look and point me in the right direction, I feel like this is likely easy work for someone.
By the way, the only reason I'm doing this is because I'd like to retain the full HTML e-mails for notifications that are e-mailed, but those things look like garbage when sent as an SMS (via e-mail). Basically unreadable.
Add comment