]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/munin/files/default/plugins/passenger_memory
Merge remote-tracking branch 'tigerfell/pr257'
[chef.git] / cookbooks / munin / files / default / plugins / passenger_memory
index 7017c63e087131f715f04002f9a1789eb00cf723..dd0f663811f92de247bbdc72faf8f34bcc61920b 100755 (executable)
@@ -6,20 +6,20 @@
 require "English"
 
 def output_config
-  puts <<~END
+  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
+  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+)/