Skip to content

Instantly share code, notes, and snippets.

View arothstein's full-sized avatar

Aaron Rothstein arothstein

  • Wunita
  • Minneapolis, MN
View GitHub Profile
@arothstein
arothstein / DigitalOcean.Status.AtomFeed.Poll.ps1
Last active February 28, 2020 17:21
DigitalOcean.Status.AtomFeed.Poll.ps1
# 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.