summaryrefslogtreecommitdiff
path: root/files/munin/passenger_mem
diff options
context:
space:
mode:
authorMicah Anderson <micah@riseup.net>2010-04-27 09:07:51 -0400
committerMicah Anderson <micah@riseup.net>2010-04-27 09:07:51 -0400
commit97ea40f9c22ae4a363ef8e7394b8d2b4c6846103 (patch)
tree00599bf53d5e30db97a70f4c95e082b2ee7a449d /files/munin/passenger_mem
parent65a851a783b172542aacb4711fffc68a72f28589 (diff)
update passenger-memory-stats to a better version of the plugin
Diffstat (limited to 'files/munin/passenger_mem')
-rwxr-xr-xfiles/munin/passenger_mem31
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
-
-