Skip to content
Browse files

add the little nagios check that we use. pretty straightforward.

1 parent 375ee45 commit 1e142841d9334c04bc9f3eb0a93604f4144a93f8 @jamesgolick jamesgolick committed
Showing with 16 additions and 0 deletions.
  1. +16 −0 misc/check_rollout.rb
View
16 misc/check_rollout.rb
@@ -0,0 +1,16 @@
+#!/usr/bin/env ruby
+
+require "rubygems"
+require "yajl"
+require "open-uri"
+
+output = Yajl::Parser.parse(open(ARGV[0]))
+percentage = output["percentage"].to_i
+
+puts Yajl::Encoder.encode(output)
+
+if percentage == 100
+ exit(0)
+else
+ exit(2)
+end

0 comments on commit 1e14284

Please sign in to comment.
Something went wrong with that request. Please try again.