Created
May 23, 2015 20:41
-
-
Save therealbill/38aaa0bc6e8cf87cbba1 to your computer and use it in GitHub Desktop.
Recover Sentinel Config From Red Skull
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
#!/usr/bin/env python | |
import requests | |
for pod in requests.get("http://localhost:8000/api/knownpods").json()['Data']: | |
print "sentinel monitor {Name} {Info[IP]}:{Info[Port]} 2\nsentinel set {Name} auth-pass {AuthToken}".format(**pod) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment