Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: af14da0f70
Fetching contributors…

Cannot retrieve contributors at this time

executable file 29 lines (26 sloc) 0.612 kb
#!/bin/env ruby
# encoding: utf-8
module Munin
class PassengerQueue < RequestLogAnalyzerPlugin
def ensure_configuration
require_passenger_status
super
end
def config
puts <<-CONFIG
graph_category #{graph_category}
graph_title Passenger queue
graph_vlabel count
graph_args --base 1000 -l 0
graph_info The amount of requests waiting on global queue
requests.label requests
CONFIG
exit 0
end
def run
status = run_command(passenger_status, debug)
status =~ /Waiting on global queue:\s+(\d+)/
puts "requests.value #{$1}"
end
end
end
Jump to Line
Something went wrong with that request. Please try again.