summaryrefslogtreecommitdiff
path: root/puppet/modules/site_check_mk/templates
diff options
context:
space:
mode:
authorvarac <varacanero@zeromail.org>2015-08-13 07:28:26 +0200
committervarac <varacanero@zeromail.org>2015-08-13 07:51:57 +0200
commitc4ddd197a1ca6a3fac70a86a3ed3dc3d4920e3ca (patch)
tree6ea0bf6f1afbd163d8a599e35faaccf2dab115b4 /puppet/modules/site_check_mk/templates
parente6f6324ebea9fc46d5d617a08c2eb239349d9f90 (diff)
Increase readability of nagios notification mail subjects (#6847)
Change-Id: Ic9af9ef3602abbb51edf1c9d71d4d264b4ace714
Diffstat (limited to 'puppet/modules/site_check_mk/templates')
-rw-r--r--puppet/modules/site_check_mk/templates/extra_host_conf.mk13
1 files changed, 13 insertions, 0 deletions
diff --git a/puppet/modules/site_check_mk/templates/extra_host_conf.mk b/puppet/modules/site_check_mk/templates/extra_host_conf.mk
new file mode 100644
index 00000000..bc27b514
--- /dev/null
+++ b/puppet/modules/site_check_mk/templates/extra_host_conf.mk
@@ -0,0 +1,13 @@
+# retry 3 times before setting a host into a hard state
+# and send out notification
+extra_host_conf["max_check_attempts"] = [
+ ("4", ALL_HOSTS )
+]
+
+# Use hostnames as alias so notification mail subjects
+# are more readable and not so long. Alias defaults to
+# the fqdn of a host is not changed.
+extra_host_conf["alias"] = [
+<% @hosts.keys.sort.each do |key| -%> ( "<%= key.strip %>", ["<%= @hosts[key]['domain_internal']%>"]),
+<% end -%>
+]