Skip to content

Instantly share code, notes, and snippets.

@notmyname
Last active January 4, 2016 01:59
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save notmyname/8552219 to your computer and use it in GitHub Desktop.
Save notmyname/8552219 to your computer and use it in GitHub Desktop.
Set up OpenStack gate graph on your desktop with GeekTool.
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