X-Git-Url: https://git.openstreetmap.org/chef.git/blobdiff_plain/90a349e0bc558441e65156eabb585c578d93fbfd..8df838bf09d95282ba29ddde8b504e0affc5f06e:/cookbooks/munin/files/default/plugins/passenger_processes diff --git a/cookbooks/munin/files/default/plugins/passenger_processes b/cookbooks/munin/files/default/plugins/passenger_processes index b8a06cf3a..0611ccc0e 100755 --- a/cookbooks/munin/files/default/plugins/passenger_processes +++ b/cookbooks/munin/files/default/plugins/passenger_processes @@ -3,7 +3,7 @@ require "English" def output_config - puts <<~END + puts <<~CONFIG graph_category passenger graph_title Passenger processes graph_order active inactive @@ -14,14 +14,14 @@ def output_config active.draw AREA inactive.label idle servers inactive.draw STACK - END + CONFIG exit 0 end def output_values status = `/usr/sbin/passenger-status` unless $CHILD_STATUS.success? - $stderr.puts "failed executing passenger-status" + warn "failed executing passenger-status" exit 1 end status =~ /active\s+=\s+(\d+)/