Skip to content
This repository has been archived by the owner on Jul 11, 2020. It is now read-only.
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: rubygems/rubygems-chef
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 566bf4fa7fdc
Choose a base ref
...
head repository: rubygems/rubygems-chef
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 322754af1bec
Choose a head ref
  • 2 commits
  • 3 files changed
  • 1 contributor

Commits on Jun 19, 2014

  1. Enable slack handler for existing checks

    Sam Kottler committed Jun 19, 2014
    Copy the full SHA
    f7b1391 View commit details
  2. Copy the full SHA
    322754a View commit details
Showing with 5 additions and 5 deletions.
  1. +1 −1 Berksfile.lock
  2. +1 −1 cookbooks/rubygems-sensu/metadata.rb
  3. +3 −3 cookbooks/rubygems-sensu/recipes/base.rb
2 changes: 1 addition & 1 deletion Berksfile.lock
Original file line number Diff line number Diff line change
@@ -216,7 +216,7 @@ GRAPH
rubygems-repo (0.0.6)
aptly (>= 0.0.0)
rubygems (>= 0.0.0)
rubygems-sensu (0.0.38)
rubygems-sensu (0.0.39)
chef-vault (>= 0.0.0)
sensu (>= 0.0.0)
rubygems-ssh (0.0.3)
2 changes: 1 addition & 1 deletion cookbooks/rubygems-sensu/metadata.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name 'rubygems-sensu'
maintainer 'RubyGems.org ops team'

version '0.0.38'
version '0.0.39'

depends 'chef-vault'
depends 'sensu'
6 changes: 3 additions & 3 deletions cookbooks/rubygems-sensu/recipes/base.rb
Original file line number Diff line number Diff line change
@@ -17,23 +17,23 @@

sensu_check "check_procs" do
command "/opt/sensu/embedded/bin/ruby /etc/sensu/plugins/check-procs.rb"
handlers ["default"]
handlers ["default", "slack"]
subscribers ["all"]
interval 30
additional(:notification => 'There is a high number of procs running', :occurences => 3)
end

sensu_check "check_ssh" do
command "/usr/lib/nagios/plugins/check_ssh localhost"
handlers ["default"]
handlers ["default", "slack"]
subscribers ["all"]
interval 30
additional(:notification => 'sshd is not running', :occurences => 3)
end

sensu_check "check_apt" do
command "/usr/lib/nagios/plugins/check_apt"
handlers ['default']
handlers ['default', 'slack']
subscribers ['all']
interval 60
additional(:notification => 'There are pending package upgrades', :occurences => 3)