riemann-babbler 0.1.7 → 0.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/riemann/babbler/plugin.rb +6 -0
- data/lib/riemann/version.rb +1 -1
- metadata +1 -1
@@ -44,6 +44,11 @@ module Riemann
|
|
44
44
|
hostname
|
45
45
|
end
|
46
46
|
|
47
|
+
# не запускаем плагин есть
|
48
|
+
def not_run_plugin
|
49
|
+
false
|
50
|
+
end
|
51
|
+
|
47
52
|
def riemann
|
48
53
|
@riemann ||= Riemann::Client.new(
|
49
54
|
:host => options.riemann.host,
|
@@ -53,6 +58,7 @@ module Riemann
|
|
53
58
|
alias :r :riemann
|
54
59
|
|
55
60
|
def run
|
61
|
+
return 0 if not_run_plugin
|
56
62
|
t0 = Time.now
|
57
63
|
loop do
|
58
64
|
begin
|
data/lib/riemann/version.rb
CHANGED