summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authork clair <kclair@riseup.net>2012-09-21 16:40:50 -0700
committerMicah Anderson <micah@riseup.net>2012-10-05 15:16:56 -0400
commit69f7035247fe225b9a4ce3c3274d79005dca0cea (patch)
treed9fa7906bc61bc1c0207578ef87b35d0f6b01153
parent2ea883f5c04b5935ca83bd927f178e934312e0c4 (diff)
have passenger_stats munin script take an environment variable for the location of passenger-status
-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