Skip to content

Instantly share code, notes, and snippets.

@cballou
Created October 6, 2015 20:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cballou/70633738b1bd4edd62eb to your computer and use it in GitHub Desktop.
Save cballou/70633738b1bd4edd62eb to your computer and use it in GitHub Desktop.
A very simple script I found online for getting a newline delimited list of the Pingdom probe server IP addresses. Great if you need to whitelist them.
#!/bin/bash
# one liner to get all Pingdom probe server IP addresses
wget --quiet -O- https://www.pingdom.com/rss/probe_servers.xml | perl -nle 'print $1 if /IP: (([01]?\d\d?|2[0-4]\d|25[0-5])\.([01]?\d\d?|2[0-4]\d|25[0-5])\.([01]?\d\d?|2[0-4]\d|25[0-5])\.([01]?\d\d?|2[0-4]\d|25[0-5]));/'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment