entombedvirus-munin_manager 1.1.8 → 1.1.9
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -1
- data/bin/runner +1 -1
- data/lib/munin_manager/plugins/notification_classification.rb +1 -1
- data/munin_manager.gemspec +1 -1
- metadata +1 -1
data/Rakefile
CHANGED
data/bin/runner
CHANGED
@@ -19,7 +19,7 @@ module MuninManager
|
|
19
19
|
if cmd = ARGV[0] and allowed_commands.include? cmd
|
20
20
|
puts new.config
|
21
21
|
else
|
22
|
-
cmd = "
|
22
|
+
cmd = "mysql -u #{ENV['mysql_user']} --password=#{ENV['mysql_password']} -h #{ENV['host']} -e 'use #{ENV['database']}; select count(*) from notification_classifications where created_at >= \"#{1.hour.ago.to_s(:db)}\";' --skip-column-names --silent"
|
23
23
|
puts "notification_rate.value %s" % `#{cmd}`
|
24
24
|
end
|
25
25
|
end
|
data/munin_manager.gemspec
CHANGED