diff options
author | k clair <kclair@riseup.net> | 2012-09-21 16:40:50 -0700 |
---|---|---|
committer | Micah Anderson <micah@riseup.net> | 2012-10-05 15:16:56 -0400 |
commit | 69f7035247fe225b9a4ce3c3274d79005dca0cea (patch) | |
tree | d9fa7906bc61bc1c0207578ef87b35d0f6b01153 | |
parent | 2ea883f5c04b5935ca83bd927f178e934312e0c4 (diff) |
have passenger_stats munin script take an environment variable for the location of passenger-status
-rwxr-xr-x | files/munin/passenger_stats | 4 |
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 |