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: c90e69c0bc58
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: 7fec37ea665a
Choose a head ref
  • 2 commits
  • 3 files changed
  • 1 contributor

Commits on Jun 21, 2014

  1. Sensu check to ensure ntpd is running

    Sam Kottler committed Jun 21, 2014

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    9a5704c View commit details
  2. Merge branch 'master' of github.com:skottler/rubygems-infrastructure

    * 'master' of github.com:skottler/rubygems-infrastructure:
      fix database credentials
    Sam Kottler committed Jun 21, 2014

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    7fec37e View commit details
Showing with 10 additions and 2 deletions.
  1. +1 −1 Berksfile.lock
  2. +1 −1 cookbooks/rubygems-sensu/metadata.rb
  3. +8 −0 cookbooks/rubygems-sensu/recipes/base.rb
2 changes: 1 addition & 1 deletion Berksfile.lock
Original file line number Diff line number Diff line change
@@ -222,7 +222,7 @@ GRAPH
rubygems-repo (0.0.6)
aptly (>= 0.0.0)
rubygems (>= 0.0.0)
rubygems-sensu (0.0.48)
rubygems-sensu (0.0.49)
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.48'
version '0.0.49'

depends 'chef-vault'
depends 'sensu'
8 changes: 8 additions & 0 deletions cookbooks/rubygems-sensu/recipes/base.rb
Original file line number Diff line number Diff line change
@@ -36,6 +36,14 @@
additional(notification: 'chef-client is not running', occurences: 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']
subscribers ['all']
interval 30
additional(notification: 'ntpd is not running', occurences: 3)
end

sensu_check 'check_ssh' do
command '/usr/lib/nagios/plugins/check_ssh localhost'
handlers ['slack']