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

Commit

Permalink
update nginx checks
Browse files Browse the repository at this point in the history
dwradcliffe committed Feb 12, 2015
1 parent 09d3f92 commit 6d3f6c6
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Berksfile.lock
Original file line number Diff line number Diff line change
@@ -324,7 +324,7 @@ GRAPH
nginx (>= 0.0.0)
rubygems (>= 0.0.0)
rubygems-ruby (0.0.4)
rubygems-sensu (0.1.7)
rubygems-sensu (0.1.8)
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.7'
version '0.1.8'

depends 'build-essential'
depends 'chef-vault'
8 changes: 4 additions & 4 deletions cookbooks/rubygems-sensu/recipes/balancer.rb
Original file line number Diff line number Diff line change
@@ -4,19 +4,19 @@
#

sensu_check 'check_nginx_http' do
command '/usr/lib/nagios/plugins/check_http -I 127.0.0.1 -t 5 -w 1 -c 2'
command '/usr/lib/nagios/plugins/check_http -I 127.0.0.1 -t 5 -w 3 -c 5'
handlers ['slack', 'pagerduty']
subscribers ['balancer']
interval 30
additional(notification: "[#{node.chef_environment}] nginx is not returning 200 OK on port 80", occurrences: 3)
additional(occurrences: 3)
end

sensu_check 'check_nginx_https' do
command '/usr/lib/nagios/plugins/check_http -I 127.0.0.1 --ssl -t 5 -w 1 -c 2'
command '/usr/lib/nagios/plugins/check_http -I 127.0.0.1 --ssl -t 5 -w 3 -c 5'
handlers ['slack', 'pagerduty']
subscribers ['balancer']
interval 30
additional(notification: "[#{node.chef_environment}] nginx is not returning 200 OK on port 443", occurrences: 3)
additional(occurrences: 3)
end

sensu_check 'check_nginx_cert_expiration' do

0 comments on commit 6d3f6c6

Please sign in to comment.