Skip to content

Instantly share code, notes, and snippets.

@therealbill
Created May 23, 2015 20:41
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 therealbill/38aaa0bc6e8cf87cbba1 to your computer and use it in GitHub Desktop.
Save therealbill/38aaa0bc6e8cf87cbba1 to your computer and use it in GitHub Desktop.
Recover Sentinel Config From Red Skull
#!/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