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

Commit

Permalink
base checks shouldn’t go to pagerduty
Browse files Browse the repository at this point in the history
dwradcliffe committed Nov 15, 2014
1 parent 2a606d8 commit dd9fea5
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Berksfile.lock
Original file line number Diff line number Diff line change
@@ -302,7 +302,7 @@ GRAPH
nginx (>= 0.0.0)
rubygems (>= 0.0.0)
rubygems-ruby (0.0.3)
rubygems-sensu (0.1.4)
rubygems-sensu (0.1.5)
build-essential (>= 0.0.0)
chef-vault (>= 0.0.0)
cpan (>= 0.0.0)
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.1.4'
version '0.1.5'

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

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

sensu_check 'check_ntpd_proc' do
command "/opt/sensu/embedded/bin/ruby /etc/sensu/plugins/check-procs.rb -p '/usr/sbin/ntpd -p /var/run/ntpd.pid'"
handlers ['slack', 'pagerduty']
handlers ['slack']
subscribers ['all']
interval 30
additional(notification: 'ntpd is not running', occurrences: 3)
end

sensu_check 'check_collectd_proc' do
command "/opt/sensu/embedded/bin/ruby /etc/sensu/plugins/check-procs.rb -p 'collectd -C /etc/collectd/collectd.conf'"
handlers ['slack', 'pagerduty']
handlers ['slack']
subscribers ['all']
interval 30
additional(notification: 'collectd is not running', occurrences: 3)
@@ -37,23 +37,23 @@

sensu_check 'check_apt' do
command '/usr/lib/nagios/plugins/check_apt'
handlers ['slack', 'pagerduty']
handlers ['slack']
subscribers ['all']
interval 60
additional(notification: 'There are pending package upgrades', occurrences: 3)
end

sensu_check 'check_ntp_time' do
command '/usr/lib/nagios/plugins/check_ntp_time -H localhost'
handlers ['slack', 'pagerduty']
handlers ['slack']
subscribers ['all']
interval 120
additional(notification: 'NTP is out of sync', occurrences: 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 ['slack', 'pagerduty']
handlers ['slack']
subscribers ['all']
interval 30
additional(notification: 'Load is high', occurrences: 3)

0 comments on commit dd9fea5

Please sign in to comment.