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

Commit

Permalink
Remove the default handler from base checks since it doesn't exist
Browse files Browse the repository at this point in the history
Sam Kottler committed Jun 19, 2014
1 parent 7c5e145 commit ae7b9bf
Showing 3 changed files with 7 additions and 7 deletions.
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.44)
rubygems-sensu (0.0.45)
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.44'
version '0.0.45'

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

sensu_check 'check_procs' do
command '/opt/sensu/embedded/bin/ruby /etc/sensu/plugins/check-procs.rb'
handlers ['default', 'slack']
handlers ['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', 'slack']
handlers ['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', 'slack']
handlers ['slack']
subscribers ['all']
interval 60
additional(:notification => 'There are pending package upgrades', :occurences => 3)
end

sensu_check 'check_ntp_time' do
command '/usr/lib/nagios/plugins/check_ntp_time -H localhost'
handlers ['default', 'slack']
handlers ['slack']
subscribers ['all']
interval 30
additional(:notification => 'NTP is out of sync', :occurences => 3)
end

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 ['slack']
subscribers ['all']
interval 30
additional(:notification => 'Load is high', :occurences => 3)

0 comments on commit ae7b9bf

Please sign in to comment.