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