From: Tom Hughes Date: Tue, 24 Feb 2015 00:48:48 +0000 (+0000) Subject: Increase alert thresholds for minutely diffs X-Git-Url: https://git.openstreetmap.org/chef.git/commitdiff_plain/83f3e81a0ee82d24cf320e42ace535d0c4ba5b4e?hp=52fce26a442516572b3dd57b7643f1fd622a7e4a Increase alert thresholds for minutely diffs --- diff --git a/cookbooks/munin/files/default/plugins/planet_age b/cookbooks/munin/files/default/plugins/planet_age index 3fb0defe5..a3f37093f 100755 --- a/cookbooks/munin/files/default/plugins/planet_age +++ b/cookbooks/munin/files/default/plugins/planet_age @@ -5,25 +5,33 @@ files = [ :label => "planet", :name => "/store/planet/planet/planet-latest.osm.bz2", :title => "Planet Dump", - :frequency => 7 * 24 * 60 * 60 + :frequency => 7 * 24 * 60 * 60, + :warning => 1.05, + :critical => 1.1 }, { :label => "day", :name => "/store/planet/replication/day/state.txt", :title => "Daily Replication", - :frequency => 24 * 60 * 60 + :frequency => 24 * 60 * 60, + :warning => 1.05, + :critical => 1.1 }, { :label => "hour", :name => "/store/planet/replication/hour/state.txt", :title => "Hourly Replication", - :frequency => 60 * 60 + :frequency => 60 * 60, + :warning => 1.05, + :critical => 1.1 }, { :label => "minute", :name => "/store/planet/replication/minute/state.txt", :title => "Minutely Replication", - :frequency => 60 + :frequency => 60, + :warning => 3, + :critical => 5 } ] @@ -37,8 +45,8 @@ if ARGV[0] == "config" files.each do |file| puts "#{file[:label]}.label #{file[:title]}" puts "#{file[:label]}.type GAUGE" - puts "#{file[:label]}.warning 0:1.05" - puts "#{file[:label]}.critical 0:1.1" + puts "#{file[:label]}.warning 0:#{file[:warning]}" + puts "#{file[:label]}.critical 0:#{file[:critical]}" end else