From 96506dd7c96a8b908be1b3ff085daad073f37dcd Mon Sep 17 00:00:00 2001 From: varac Date: Tue, 6 Sep 2016 13:52:31 +0200 Subject: Ignore most of the flapping checks --- .../modules/custom/files/check_mk/ignored_services.custom.mk | 7 +++++++ files/puppet/modules/custom/files/ignored_services.custom.mk | 8 ++++++++ files/puppet/modules/custom/manifests/check_mk.pp | 11 +++++++++++ files/puppet/modules/custom/manifests/init.pp | 9 ++++++++- 4 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 files/puppet/modules/custom/files/check_mk/ignored_services.custom.mk create mode 100644 files/puppet/modules/custom/files/ignored_services.custom.mk create mode 100644 files/puppet/modules/custom/manifests/check_mk.pp diff --git a/files/puppet/modules/custom/files/check_mk/ignored_services.custom.mk b/files/puppet/modules/custom/files/check_mk/ignored_services.custom.mk new file mode 100644 index 0000000..eb7890b --- /dev/null +++ b/files/puppet/modules/custom/files/check_mk/ignored_services.custom.mk @@ -0,0 +1,7 @@ +# Ignore all checks that are too noisy or flapping on other machines than the clientdev env +ignored_services += [ + # doesn't work because we don't use check_mk tags + #([ '!clientdev' ], ALL_HOSTS, [ "LOG /var/log/leap/webapp.log", "LOG /var/log/soledad.log", "Job pixelated-functional-tests" ] ), + ( [ "alpaca.mail.bitmask.i", "donkey.unstable.bitmask.i", "elephant.dev.bitmask.i", "leech.demo.bitmask.i" ], + [ "LOG /var/log/leap/webapp.log", "LOG /var/log/soledad.log", "Job pixelated-functional-tests" ] ), +] diff --git a/files/puppet/modules/custom/files/ignored_services.custom.mk b/files/puppet/modules/custom/files/ignored_services.custom.mk new file mode 100644 index 0000000..28e0036 --- /dev/null +++ b/files/puppet/modules/custom/files/ignored_services.custom.mk @@ -0,0 +1,8 @@ +# Ignore all checks that are too noisy or flapping on other machines than the clientdev env +ignored_services += [ + # doesn't work because we don't use check_mk tags + #([ '!clientdev' ], ALL_HOSTS, [ "LOG /var/log/leap/webapp.log", "LOG /var/log/soledad.log", "Job pixelated-functional-tests" ] ), + ("donkey.unstable.bitmask.i", "Job pixelated-functional-tests"), + ( [ "alpaca.mail.bitmask.i", "donkey.unstable.bitmask.i", "elephant.dev.bitmask.i", "leech.demo.bitmask.i" ], "LOG /var/log/leap/webapp.log" ), + ( ["aardwolf.unstable.bitmask.i", "ant.demo.bitmask.i"], "LOG /var/log/soledad.log"), +] diff --git a/files/puppet/modules/custom/manifests/check_mk.pp b/files/puppet/modules/custom/manifests/check_mk.pp new file mode 100644 index 0000000..a3020fe --- /dev/null +++ b/files/puppet/modules/custom/manifests/check_mk.pp @@ -0,0 +1,11 @@ +# custom changes to check_mk +# +class custom::check_mk { + + file { '/etc/check_mk/conf.d/ignored_services.custom.mk': + source => 'puppet:///modules/custom/check_mk/ignored_services.custom.mk', + mode => '0644', + owner => 'root', + group => 'root', + } +} diff --git a/files/puppet/modules/custom/manifests/init.pp b/files/puppet/modules/custom/manifests/init.pp index 983ca42..0a67491 100644 --- a/files/puppet/modules/custom/manifests/init.pp +++ b/files/puppet/modules/custom/manifests/init.pp @@ -5,11 +5,18 @@ class custom { $services = hiera('services', []) + # monitoring + # munin include custom_munin_node include custom_shorewall::munin_node + # check_mk + if member ( $services, 'monitor') { + include ::custom::check_mk + } + # packages we want to install on every server - ensure_packages (['iotop', 'vim', 'tmux', 'bash-completion', 'ncdu']) + ensure_packages (['iotop', 'vim', 'tmux', 'bash-completion', 'ncdu', 'tig']) if member ( $services, 'openvpn') { include custom_munin_node::openvpn -- cgit v1.2.3