Dashing (http://shopify.github.io/dashing/) widget to display Pingdom Uptime of selected check
I'm sorry if the code is not very good, but I have never use ruby before and I'm not a developer, so please be indulgent with me
Add it to dashing's gemfile:
bundle install. Everything should work now :)
How to use it
Put this file pingdomuptime.rb on jobs folder
Put the directory pingdomuptime on widgets folder
Personnalize pingdomuptime.rb file and enjoy !!!
Modify the file pingdomuptime.rb and adapt this value :
api_key = ENV['PINGDOM_API_KEY'] || '' user = ENV['PINGDOM_USER'] || '' password = ENV['PINGDOM_PASSWORD'] || ''
You can choose to filter what you want to monitor, it's based to check name (If you put nothing, you will get all checks)
checkName = "toto"
## Adding this widget to your dashboard
To include the widget in a dashboard, add the following snippet to the dashboard layout file :
<li data-row="1" data-col="1" data-sizex="1" data-sizey="1"> <div data-id="pingdomuptime" data-view="Pingdomuptime" data-title="Pingdom Uptime" data-moreinfo="more-info" data-suffix="%"></div> </li>
This widget was inspired by this https://gist.github.com/jwalton/6625777
Pingdom is a trademark https://www.pingdom.com/
This widget is under GPL v3 Licence