5 graph_category passenger
6 graph_title Passenger processes
7 graph_order active inactive
11 active.label busy servers
13 inactive.label idle servers
20 status = `/usr/sbin/passenger-status`
21 unless $CHILD_STATUS.success?
22 $stderr.puts "failed executing passenger-status"
25 status =~ /active\s+=\s+(\d+)/
26 puts "active.value #{Regexp.last_match[1]}"
28 status =~ /inactive\s+=\s+(\d+)/
29 puts "inactive.value #{Regexp.last_match[1]}"
32 if ARGV[0] == "config"