This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# DigitalOcean.Status.AtomFeed.Poll.ps1 | |
<# | |
This script can be used as a Solarwinds Orion component monitor to poll the statuspage.io status feed for Digital Ocean. | |
It will send notifications for new updates between polling periods, and will list recent updates in the Solarwinds Orion portal. | |
#> | |
# Get Atom Feed | |
$Response = Invoke-WebRequest -Uri "https://status.digitalocean.com/history.atom" -UseBasicParsing -ContentType "application/xml" | |
If ($Response.StatusCode -ne "200") { | |
# Feed failed to respond. |