Last active
January 4, 2016 01:59
-
-
Save notmyname/8552219 to your computer and use it in GitHub Desktop.
Set up OpenStack gate graph on your desktop with GeekTool.
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
One time only (or whenever you change the graph definition), run build_page.py from | |
<https://github.com/notmyname/gate_status>. This creates simple_graph_url, a graphite URL to | |
generate the gate status graph. Then create grab_gate_image.sh somewhere in your $PATH and add | |
the cronjob. Finally add an image to GeekTool to load /tmp/gate_graph.png and set it to | |
refresh as often as you run the cronjob. I added the image at 80% opacity. | |
grab_gate_image.sh | |
------------------ | |
#!/bin/sh | |
URL=`cat /Users/john/Documents/gate_status/simple_graph_url` | |
/usr/local/bin/wget "$URL" -O /tmp/gate_graph.png 2>/dev/null | |
EOF | |
$ crontab -l | |
*/5 * * * * /Users/john/bin/grab_gate_image.sh | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment