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

Commit

Permalink
Remove additional role assignment for now
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam Kottler committed Jun 19, 2014
1 parent 99e7bdd commit 7c5e145
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Berksfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ GRAPH
rubygems-repo (0.0.6)
aptly (>= 0.0.0)
rubygems (>= 0.0.0)
rubygems-sensu (0.0.41)
rubygems-sensu (0.0.44)
chef-vault (>= 0.0.0)
sensu (>= 0.0.0)
rubygems-ssh (0.0.3)
Expand Down
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.41'
version '0.0.44'

depends 'chef-vault'
depends 'sensu'
Expand Down
4 changes: 2 additions & 2 deletions cookbooks/rubygems-sensu/recipes/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@

sensu_check 'check_load' do
command "/usr/lib/nagios/plugins/check_load -w #{node['cpu']['total'] * 8}:#{node['cpu']['total'] * 5}:#{node['cpu']['total'] * 2} -c #{node['cpu']['total'] * 10}:#{node['cpu']['total'] * 8}:#{node['cpu']['total'] * 3}"
handlers ['default'], 'slack']
handlers ['default', 'slack']
subscribers ['all']
interval 30
aditional(:notification => 'Load is high', :occurences => 3)
additional(:notification => 'Load is high', :occurences => 3)
end

2 changes: 1 addition & 1 deletion cookbooks/rubygems-sensu/recipes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

sensu_client node.name do
address node.ipaddress
subscriptions ['all'] + node['rubygems']['role_from_base_recipe']
subscriptions ['all']
additional(environment: node.chef_environment)
end

Expand Down

0 comments on commit 7c5e145

Please sign in to comment.