Browse Source

icinga2: Add icinga2.conf for Buster.

Signed-off-by: Maximilian Wilhelm <max@sdn.clinic>
Maximilian Wilhelm 4 years ago
parent
commit
89be2be686
2 changed files with 52 additions and 0 deletions
  1. 51 0
      icinga2/icinga2.conf.Debian.buster
  2. 1 0
      icinga2/init.sls

+ 51 - 0
icinga2/icinga2.conf.Debian.buster

@@ -0,0 +1,51 @@
+#
+# Icinga2 main configuration for nodes (Salt managed)
+#
+
+/**
+ * Icinga 2 configuration file
+ * - this is where you define settings for the Icinga application including
+ * which hosts/services to check.
+ *
+ * For an overview of all available configuration options please refer
+ * to the documentation that is distributed as part of Icinga 2.
+ */
+
+/**
+ * The constants.conf defines global constants.
+ */
+include "constants.conf"
+
+/**
+ * The zones.conf defines zones for a cluster setup.
+ * Not required for single instance setups.
+ */
+include "zones.conf"
+
+/**
+ * The Icinga Template Library (ITL) provides a number of useful templates
+ * and command definitions.
+ * Common monitoring plugin command definitions are included separately.
+ */
+include <itl>
+include <plugins>
+include <plugins-contrib>
+include <manubulon>
+
+/**
+ * This includes the NSClient++ check commands. These command definitions
+ * are required on a master node when a client is used as command endpoint.
+ */
+include <nscp>
+
+/**
+ * The features-available directory contains a number of configuration
+ * files for features which can be enabled and disabled using the
+ * icinga2 feature enable / icinga2 feature disable CLI commands.
+ * These commands work by creating and removing symbolic links in
+ * the features-enabled directory.
+ */
+include "features-enabled/*.conf"
+
+# Include command definitions
+include_recursive "commands.d"

+ 1 - 0
icinga2/init.sls

@@ -54,6 +54,7 @@ ffho-plugins:
   file.managed:
     - source:
       - salt://icinga2/icinga2.conf.H_{{ grains.id }}
+      - salt://icinga2/icinga2.conf.{{ grains.os }}.{{ grains.oscodename }}
       - salt://icinga2/icinga2.conf
     - require:
       - pkg: icinga2