4 require "rexml/document"
7 @passenger_status ||= REXML::Document.new(`/usr/sbin/passenger-status --show=xml`)
12 graph_args --lower-limit 0
13 graph_category passenger
14 graph_title Passenger processes
15 graph_order active inactive
16 graph_vlabel processes
19 active.label busy servers
21 inactive.label idle servers
31 passenger_status.get_elements("//process").each do |process|
32 if process.text("sessions").to_i.positive?
39 puts "active.value #{active}"
40 puts "inactive.value #{inactive}"
43 if ARGV[0] == "config"