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 CHANGED
@@ -1,5 +1,5 @@
1
1
  require 'echoe'
2
- Echoe.new('munin_manager', '1.1.8') do |s|
2
+ Echoe.new('munin_manager', '1.1.9') do |s|
3
3
  s.description = "Tool to maintain and install munin plugins written in Ruby"
4
4
  s.author = "Rohith Ravi"
5
5
  s.email = "entombedvirus@gmail.com"
data/bin/runner CHANGED
@@ -9,7 +9,7 @@ require "#{File.dirname(this_file)}/../lib/munin_manager"
9
9
 
10
10
  plugin_name = File.basename($0)
11
11
 
12
- if plugin = MuninManager::Plugins[plugin_name]
12
+ if plugin = MuninManager::Plugins[plugin_name.split('.')[0]]
13
13
  plugin.run
14
14
  exit(0)
15
15
  else
@@ -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 = "/opt/local/bin/mysql5 -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"
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
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{munin_manager}
5
- s.version = "1.1.8"
5
+ s.version = "1.1.9"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Rohith Ravi"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: entombedvirus-munin_manager
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.8
4
+ version: 1.1.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rohith Ravi