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

Commit

Permalink
Check for pending upgrades and alert if there are security upgrades a…
Browse files Browse the repository at this point in the history
…vailable
  • Loading branch information
Sam Kottler committed Jun 19, 2014
1 parent 53a0e28 commit 3006a7d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 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.36)
rubygems-sensu (0.0.37)
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.36'
version '0.0.37'

depends 'chef-vault'
depends 'sensu'
Expand Down
8 changes: 8 additions & 0 deletions cookbooks/rubygems-sensu/recipes/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,11 @@
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']
subscribers ['all']
interval 60
additional(:notification => 'There are pending package upgrades', :occurences => 3)
end

0 comments on commit 3006a7d

Please sign in to comment.