Permalink
Browse files

Removed debug output, adding build-essential dependency.

  • Loading branch information...
1 parent 588069b commit c6d39a4e3e27c2c07649d58fc44ab2c109fcc889 @elecnix committed Jul 8, 2009
Showing with 2 additions and 2 deletions.
  1. +2 −2 postgres_gmetric.rb
View
@@ -3,7 +3,7 @@
#
# == Install Dependencies ==
#
-# sudo apt-get install ruby postgresql-server-dev-8.3 rubygems ruby-dev ganglia-monitor
+# sudo apt-get install ruby postgresql-server-dev-8.3 rubygems ruby-dev ganglia-monitor build-essential
# sudo gem install postgres pg ruby-pg
#
# == Usage ==
@@ -31,7 +31,7 @@ def publish(sql)
col=0
lines[0].split('|').each do |colname|
v=values[col]
- puts "#{colname}=#{v}"
+ #puts "#{colname}=#{v}"
`gmetric --name "pg_#{colname}" --value #{v} --type float --dmax=240`
col=col+1
end

0 comments on commit c6d39a4

Please sign in to comment.