Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit 1e142841d9334c04bc9f3eb0a93604f4144a93f8 1 parent 375ee45
James Golick jamesgolick authored
Showing with 16 additions and 0 deletions.
  1. +16 −0 misc/check_rollout.rb
16 misc/check_rollout.rb
View
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.