riemann-babbler 2.0.0pre6 → 2.0.0pre7
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.
@@ -37,7 +37,7 @@ class Riemann::Babbler::Plugin::Pgsql < Riemann::Babbler::Plugin
|
|
37
37
|
end
|
38
38
|
|
39
39
|
def rep_lag_state
|
40
|
-
rep_lag =
|
40
|
+
rep_lag = run_sql(plugin.rep_lag_sql).to_i.abs
|
41
41
|
if rep_lag >= plugin.rep_lag_crit
|
42
42
|
{ :service => plugin.service + ' rep_lag', :description => 'Postgresql replication lag state', :state => 'critical', :metric => rep_lag }
|
43
43
|
elsif rep_lag >= plugin.rep_lag_warn
|