Add a new Squid graph to count the IPs being delayed due to no-referer, and restrict...
[chef.git] / cookbooks / munin / files / default / plugins / passenger_requests
index f783be974040b67adfd0245fa7e185e8a17c5d97..1e34fc70f946c1e1d2218fd23a961c6f84661f12 100755 (executable)
@@ -1,5 +1,7 @@
 #!/usr/bin/env ruby
 
 #!/usr/bin/env ruby
 
+require "English"
+
 def output_config
   puts <<-END
 graph_args --base 1000
 def output_config
   puts <<-END
 graph_args --base 1000
@@ -17,7 +19,7 @@ end
 
 def output_values
   status = `/usr/sbin/passenger-status`
 
 def output_values
   status = `/usr/sbin/passenger-status`
-  unless $?.success?
+  unless $CHILD_STATUS.success?
     $stderr.puts "failed executing passenger-status"
     exit 1
   end
     $stderr.puts "failed executing passenger-status"
     exit 1
   end