]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/munin/files/default/plugins/passenger_processes
Update memcached munin plugins
[chef.git] / cookbooks / munin / files / default / plugins / passenger_processes
index d89d0412e9139d2fac1a0ec39f908ef4b6ffa413..59f9cdaa86932e921fb53ba10d2b37a67a7b71c9 100755 (executable)
@@ -18,15 +18,15 @@ end
 
 def output_values
   status = `/usr/sbin/passenger-status`
-  unless $?.success?
+  unless $CHILD_STATUS.success?
     $stderr.puts "failed executing passenger-status"
     exit 1
   end
   status =~ /active\s+=\s+(\d+)/
-  puts "active.value #{$1}"
+  puts "active.value #{Regexp.last_match[1]}"
 
   status =~ /inactive\s+=\s+(\d+)/
-  puts "inactive.value #{$1}"
+  puts "inactive.value #{Regexp.last_match[1]}"
 end
 
 if ARGV[0] == "config"