]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/munin/files/default/plugins/passenger_queues
Fix issues reported by new rubocop
[chef.git] / cookbooks / munin / files / default / plugins / passenger_queues
index a7060fd665c9c5ed9159e2ddcd8bdd57dbddb2a2..60be63389f957160cc38ae9646ed7bf75e787b21 100755 (executable)
@@ -1,5 +1,7 @@
 #!/usr/bin/env ruby
 
+require "English"
+
 def output_config
   puts <<-END
 graph_category passenger
@@ -17,7 +19,7 @@ def output_values
     $stderr.puts "failed executing passenger-status"
     exit 1
   end
-  status =~ /Waiting on global queue:\s+(\d+)/
+  status =~ /Requests in top-level queue :\s+(\d+)/
   puts "global.value #{Regexp.last_match[1]}"
 end