Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Cloudkick 'check' status update script in a few lines of ruby.
require 'rubygems'
require 'oauth'
require 'openssl'
# your OAuth consumer credentials.
node_id='n359b40753' # your node_id
status='err' # or 'ok'
details="Donny, you're out of your element!" # or 'she probably kidnapped herself'
id='qc4a7b82cd' # your check_id, CONSUMER_SECRET, :site => '', :http_method => :get) ).post("/2.0/check/#{id}/update_status", { :status => status, :node_id => node_id, :details => details } )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment