summaryrefslogtreecommitdiff
path: root/files/munin/passenger_stats
diff options
context:
space:
mode:
Diffstat (limited to 'files/munin/passenger_stats')
-rwxr-xr-xfiles/munin/passenger_stats4
1 files changed, 3 insertions, 1 deletions
diff --git a/files/munin/passenger_stats b/files/munin/passenger_stats
index a117903..f06e88a 100755
--- a/files/munin/passenger_stats
+++ b/files/munin/passenger_stats
@@ -1,5 +1,7 @@
#!/usr/bin/env ruby
+PASSENGER_STATUS = ENV['passenger_status'] || '/usr/local/bin/passenger-status'
+
def output_config
puts <<-END
graph_category Passenger
@@ -16,7 +18,7 @@ END
end
def output_values
- status = `/usr/sbin/passenger-status`
+ status = `#{PASSENGER_STATUS}`
unless $?.success?
$stderr.puts "failed executing passenger-status"
exit 1