4 require "rexml/document"
7 @passenger_status ||= REXML::Document.new(`/usr/sbin/passenger-status --show=xml`)
12 graph_category passenger
13 graph_title Passenger queues
20 groups = passenger_status.get_elements("//supergroup").map do |supergroup|
21 supergroup.text("name")
24 groups.sort.each do |name|
25 puts "#{name}.label #{name}"
26 puts "#{name}.draw STACK"
31 global = passenger_status.text("/item/get_wait_list").to_i
33 puts "global.value #{global}"
35 passenger_status.get_elements("//supergroup").each do |supergroup|
36 name = supergroup.text("name")
37 queue = supergroup.text("get_wait_list").to_i
39 puts "#{name}.value #{queue}"
43 if ARGV[0] == "config"