diff options
author | Micah Anderson <micah@riseup.net> | 2010-04-27 09:07:51 -0400 |
---|---|---|
committer | Micah Anderson <micah@riseup.net> | 2010-04-27 09:07:51 -0400 |
commit | 97ea40f9c22ae4a363ef8e7394b8d2b4c6846103 (patch) | |
tree | 00599bf53d5e30db97a70f4c95e082b2ee7a449d /files/munin/passenger_mem | |
parent | 65a851a783b172542aacb4711fffc68a72f28589 (diff) |
update passenger-memory-stats to a better version of the plugin
Diffstat (limited to 'files/munin/passenger_mem')
-rwxr-xr-x | files/munin/passenger_mem | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/files/munin/passenger_mem b/files/munin/passenger_mem deleted file mode 100755 index 47fba09..0000000 --- a/files/munin/passenger_mem +++ /dev/null @@ -1,31 +0,0 @@ -#!/usr/bin/env ruby -# by Dan Manges, http://www.dcmanges.com/blog/rails-application-visualization-with-munin - -def output_config - puts <<-END -graph_category App -graph_title Passenger memory stats -graph_vlabel count - -memory.label memory -END - exit 0 -end - -def output_values - status = `/usr/sbin/passenger-memory-stats | tail -1` - unless $?.success? - $stderr.puts "failed executing passenger-memory-stats" - exit 1 - end - status =~ /(\d+\.\d+)/ - puts "memory.value #{$1}" -end - -if ARGV[0] == "config" - output_config -else - output_values -end - - |