This file contains 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
#!/usr/bin/env ruby | |
## Send resque queue depth data to Graphite | |
## Grant H - 6/1/11 | |
require 'rubygems' | |
require 'resque' | |
## Read in our graphite host from file | |
graphite_host = File.read("/opt/scripts/bin/graphite_host") |
This file contains 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
#!/usr/bin/env ruby | |
require 'rubygems' | |
require 'json' | |
require 'mongo' | |
graphite_host = File.read("/opt/scripts/etc/graphite_host") | |
loop do | |
time = Time.new |
This file contains 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
#!/usr/bin/env ruby | |
## Send Mongo data to graphite | |
require 'rubygems' | |
require 'json' | |
require 'mongo' | |
graphite_host = File.read("/opt/scripts/etc/graphite_host") | |
interval = 10 #collect data every x seconds |
This file contains 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
#!/usr/bin/env ruby | |
## used by monit to check for unhealthy cluster state | |
require 'rubygems' | |
require 'mongo' | |
begin | |
db = Mongo::Connection.new("localhost", 27017, :op_timeout => 3).db("admin") | |
rescue | |
abort("MongoDB Connection Error: #{$!}") |
This file contains 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
#!/usr/bin/env ruby | |
# Get my public IP, store it, and email me if it changes | |
# Run from cron | |
require 'rubygems' | |
require 'net/https' | |
require 'gmail' | |
require 'mime' | |
time = Time.new |
This file contains 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
#!/usr/bin/env /usr/local/rvm/wrappers/ruby-1.9.2-p290@puppet/ruby | |
## Used by M/Monit to send prowl alerts | |
require 'rubygems' | |
require 'optparse' | |
# everyone's API keys | |
contact_info = { | |
"grant"=>{"key"=>"my_api_key"} |
This file contains 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
begin | |
require 'railsless-deploy' | |
require 'capistrano/ext/multistage' | |
rescue LoadError | |
abort "No soup for you! =>Required gems: railsless-deploy, capistrano-ext" | |
end | |
## rvm =>uncommment and set appropriately if you're using rvm | |
#$:.unshift(File.expand_path('./lib', ENV['rvm_path'])) | |
#require "rvm/capistrano" |
This file contains 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
# Configure Riak connections for the Ripple library. | |
development: | |
protocol: http | |
http_port: 8098 | |
http_backend: Excon | |
pb_port: 8087 | |
host: 127.0.0.1 | |
# The test environment has additional keys for configuring the | |
# Riak::TestServer for your test/spec suite: |
This file contains 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
production: | |
protocol: https | |
nodes: | |
- | |
host: 10.183.38.200 # prod-riak-r01 | |
http_port: 8000 | |
http_backend: Excon | |
pb_port: 8087 | |
- | |
host: 10.183.41.31 # prod-riak-r02 |
This file contains 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
production: | |
#protocol: http | |
ssl: true | |
nodes: | |
- | |
host: 10.183.38.200 # prod-riak-r01 | |
http_port: 8000 | |
http_backend: Excon | |
pb_port: 8087 | |
- |
OlderNewer