From 7e785fedf29b1c245337504fd2566aae71adf1e6 Mon Sep 17 00:00:00 2001 From: k clair Date: Fri, 21 Sep 2012 16:40:50 -0700 Subject: have passenger_stats munin script take an environment variable for the location of passenger-status --- files/munin/passenger_stats | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3