Created
October 6, 2015 20:44
-
-
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.
This file contains hidden or 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
#!/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