]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/munin/files/default/plugins/passenger_memory
Make replication delay monitoring more reliable
[chef.git] / cookbooks / munin / files / default / plugins / passenger_memory
index 1aa9a77640fc6b7f1de49977bc0346aa379d67a0..dd0f663811f92de247bbdc72faf8f34bcc61920b 100755 (executable)
@@ -6,20 +6,20 @@
 require "English"
 
 def output_config
-  puts <<-END
-graph_args --base 1024 -l 0 --vertical-label bytes --upper-limit 4056231936
-graph_category passenger
-graph_title Passenger memory
+  puts <<~CONFIG
+    graph_args --base 1024 -l 0 --vertical-label bytes --upper-limit 4056231936
+    graph_category passenger
+    graph_title Passenger memory
 
-memory.label memory
-END
+    memory.label memory
+  CONFIG
   exit 0
 end
 
 def output_values
   status = `/usr/sbin/passenger-memory-stats | tail -1`
   unless $CHILD_STATUS.success?
-    $stderr.puts "failed executing passenger-memory-stats"
+    warn "failed executing passenger-memory-stats"
     exit 1
   end
   status =~ /(\d+\.\d+)/