X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/7b9ec4b60ee39614d1d083d7220e76b07d2b275f..f30f230da23603e3c7598205219ce01e9820c470:/cookbooks/munin/files/default/plugins/passenger_requests?ds=sidebyside diff --git a/cookbooks/munin/files/default/plugins/passenger_requests b/cookbooks/munin/files/default/plugins/passenger_requests index f783be974..1e34fc70f 100755 --- a/cookbooks/munin/files/default/plugins/passenger_requests +++ b/cookbooks/munin/files/default/plugins/passenger_requests @@ -1,5 +1,7 @@ #!/usr/bin/env ruby +require "English" + def output_config puts <<-END graph_args --base 1000 @@ -17,7 +19,7 @@ end def output_values status = `/usr/sbin/passenger-status` - unless $?.success? + unless $CHILD_STATUS.success? $stderr.puts "failed executing passenger-status" exit 1 end