]> Frank Brehm's Git Trees - config/sarah/etc.git/commitdiff
daily autocommit
authorFrank Brehm <frank@brehm-online.com>
Thu, 15 Apr 2021 19:10:02 +0000 (21:10 +0200)
committerFrank Brehm <frank@brehm-online.com>
Thu, 15 Apr 2021 19:10:02 +0000 (21:10 +0200)
13 files changed:
.etckeeper
amavis/conf.d/50-user
icinga2/constants.conf
icinga2/constants.conf.bla [new file with mode: 0644]
icinga2/constants.conf.orig [deleted file]
icinga2/features-available/api.conf
icinga2/features-available/api.conf.orig [deleted file]
icinga2/icinga2.conf
icinga2/icinga2.conf.orig [new file with mode: 0644]
icinga2/zones.conf
icinga2/zones.conf.bla [new file with mode: 0644]
icinga2/zones.conf.orig [deleted file]
motd

index 43be8ac1ffc8cee6e271e8da9eb1837fda75fdcb..d4c09b5fd848e7eaa3cd51cdf3ea9337e832470a 100755 (executable)
@@ -915,10 +915,9 @@ maybe chmod 0644 'icinga2/conf.d/templates.conf'
 maybe chmod 0644 'icinga2/conf.d/timeperiods.conf'
 maybe chmod 0644 'icinga2/conf.d/users.conf'
 maybe chmod 0644 'icinga2/constants.conf'
-maybe chmod 0644 'icinga2/constants.conf.orig'
+maybe chmod 0644 'icinga2/constants.conf.bla'
 maybe chmod 0755 'icinga2/features-available'
 maybe chmod 0644 'icinga2/features-available/api.conf'
-maybe chmod 0644 'icinga2/features-available/api.conf.orig'
 maybe chmod 0644 'icinga2/features-available/checker.conf'
 maybe chmod 0644 'icinga2/features-available/command.conf'
 maybe chmod 0644 'icinga2/features-available/compatlog.conf'
@@ -936,6 +935,7 @@ maybe chmod 0644 'icinga2/features-available/statusdata.conf'
 maybe chmod 0644 'icinga2/features-available/syslog.conf'
 maybe chmod 0755 'icinga2/features-enabled'
 maybe chmod 0644 'icinga2/icinga2.conf'
+maybe chmod 0644 'icinga2/icinga2.conf.orig'
 maybe chmod 0644 'icinga2/init.conf'
 maybe chown 'nagios' 'icinga2/pki'
 maybe chgrp 'nagios' 'icinga2/pki'
@@ -954,7 +954,7 @@ maybe chmod 0755 'icinga2/scripts'
 maybe chmod 0755 'icinga2/scripts/mail-host-notification.sh'
 maybe chmod 0755 'icinga2/scripts/mail-service-notification.sh'
 maybe chmod 0644 'icinga2/zones.conf'
-maybe chmod 0644 'icinga2/zones.conf.orig'
+maybe chmod 0644 'icinga2/zones.conf.bla'
 maybe chmod 0755 'icinga2/zones.d'
 maybe chmod 0644 'icinga2/zones.d/README'
 maybe chmod 0755 'init'
index f9708705a5f288ee001bffe753ecaf8bca8b878c..871e9a4387950471f9f60732728abf26dbb55d72 100644 (file)
@@ -248,7 +248,8 @@ $signed_header_fields{'to'} = 1;
 dkim_key("brehm-berlin.de", "dkim", "/var/lib/dkim/uhu-banane.net.pem");
 dkim_key("brehm-online.com", "dkim", "/var/lib/dkim/uhu-banane.net.pem");
 dkim_key("brehm-online.eu", "dkim", "/var/lib/dkim/uhu-banane.net.pem");
-dkim_key("frankepedia.eu", "mail-2017-04-05", "/var/lib/dkim/frankepedia.eu.2017-04-05.pem");
+# dkim_key("frankepedia.eu", "mail-2017-04-05", "/var/lib/dkim/frankepedia.eu.2017-04-05.pem");
+dkim_key("frankepedia.eu", "dkim", "/var/lib/dkim/uhu-banane.net.pem");
 dkim_key("hennig-berlin.org", "dkim", "/var/lib/dkim/uhu-banane.net.pem");
 dkim_key("uhu-banane.com", "dkim", "/var/lib/dkim/uhu-banane.net.pem");
 dkim_key("uhu-banane.de", "dkim", "/var/lib/dkim/uhu-banane.net.pem");
index f904327f7e78007ca3f933447a7b4530497f78d1..1aba769aae1bcccf8a97105f2f6a684de689f146 100644 (file)
@@ -22,7 +22,7 @@ const PluginContribDir = "/usr/lib/nagios/plugins"
 const NodeName = "sarah.uhu-banane.de"
 
 /* Our local zone name. */
-const ZoneName = "sarah.uhu-banane.de"
+const ZoneName = NodeName
 
 /* Secret key for remote node tickets */
 const TicketSalt = ""
diff --git a/icinga2/constants.conf.bla b/icinga2/constants.conf.bla
new file mode 100644 (file)
index 0000000..f904327
--- /dev/null
@@ -0,0 +1,28 @@
+/**
+ * This file defines global constants which can be used in
+ * the other configuration files.
+ */
+
+/* The directory which contains the plugins from the Monitoring Plugins project. */
+const PluginDir = "/usr/lib/nagios/plugins"
+
+/* The directory which contains the Manubulon plugins.
+ * Check the documentation, chapter "SNMP Manubulon Plugin Check Commands", for details.
+ */
+const ManubulonPluginDir = "/usr/lib/nagios/plugins"
+
+/* The directory which you use to store additional plugins which ITL provides user contributed command definitions for.
+ * Check the documentation, chapter "Plugins Contribution", for details.
+ */
+const PluginContribDir = "/usr/lib/nagios/plugins"
+
+/* Our local instance name. By default this is the server's hostname as returned by `hostname --fqdn`.
+ * This should be the common name from the API certificate.
+ */
+const NodeName = "sarah.uhu-banane.de"
+
+/* Our local zone name. */
+const ZoneName = "sarah.uhu-banane.de"
+
+/* Secret key for remote node tickets */
+const TicketSalt = ""
diff --git a/icinga2/constants.conf.orig b/icinga2/constants.conf.orig
deleted file mode 100644 (file)
index 29232d6..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
-/**
- * This file defines global constants which can be used in
- * the other configuration files.
- */
-
-/* The directory which contains the plugins from the Monitoring Plugins project. */
-const PluginDir = "/usr/lib/nagios/plugins"
-
-/* The directory which contains the Manubulon plugins.
- * Check the documentation, chapter "SNMP Manubulon Plugin Check Commands", for details.
- */
-const ManubulonPluginDir = "/usr/lib/nagios/plugins"
-
-/* The directory which you use to store additional plugins which ITL provides user contributed command definitions for.
- * Check the documentation, chapter "Plugins Contribution", for details.
- */
-const PluginContribDir = "/usr/lib/nagios/plugins"
-
-/* Our local instance name. By default this is the server's hostname as returned by `hostname --fqdn`.
- * This should be the common name from the API certificate.
- */
-//const NodeName = "localhost"
-
-/* Our local zone name. */
-const ZoneName = NodeName
-
-/* Secret key for remote node tickets */
-const TicketSalt = ""
index be8acf381dc876f5f240dc71b66cce05a5aef81b..0136de0b2289463a8a7f9572b3ef55af9e252134 100644 (file)
@@ -1,13 +1,11 @@
 /**
  * The API listener is used for distributed monitoring setups.
  */
+
 object ApiListener "api" {
   cert_path = SysconfDir + "/icinga2/pki/" + NodeName + ".crt"
   key_path = SysconfDir + "/icinga2/pki/" + NodeName + ".key"
   ca_path = SysconfDir + "/icinga2/pki/ca.crt"
 
-  accept_config = true
-  accept_commands = true
-
   ticket_salt = TicketSalt
 }
diff --git a/icinga2/features-available/api.conf.orig b/icinga2/features-available/api.conf.orig
deleted file mode 100644 (file)
index 0136de0..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-/**
- * The API listener is used for distributed monitoring setups.
- */
-
-object ApiListener "api" {
-  cert_path = SysconfDir + "/icinga2/pki/" + NodeName + ".crt"
-  key_path = SysconfDir + "/icinga2/pki/" + NodeName + ".key"
-  ca_path = SysconfDir + "/icinga2/pki/ca.crt"
-
-  ticket_salt = TicketSalt
-}
index 019072f98f5eb23367a54f349be31a1711b97b76..b9e14ba2ca66407b98e1b28313a16c0015a3458b 100644 (file)
@@ -60,4 +60,5 @@ include_recursive "repository.d"
  * the preferred way is to create separate directories and files in the conf.d
  * directory. Each of these files must have the file extension ".conf".
  */
-#include_recursive "conf.d"
+// Disabled by the node setup CLI command on 2021-04-15 13:31:09 +0200
+// include_recursive "conf.d"
diff --git a/icinga2/icinga2.conf.orig b/icinga2/icinga2.conf.orig
new file mode 100644 (file)
index 0000000..019072f
--- /dev/null
@@ -0,0 +1,63 @@
+/**
+ * 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 Icinga 2 Windows plugins. These command definitions
+ * are required on a master node when a client is used as command endpoint.
+ */
+include <windows-plugins>
+
+/**
+ * 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"
+
+/**
+ * The repository.d directory contains all configuration objects
+ * managed by the 'icinga2 repository' CLI commands.
+ */
+include_recursive "repository.d"
+
+/**
+ * Although in theory you could define all your objects in this file
+ * the preferred way is to create separate directories and files in the conf.d
+ * directory. Each of these files must have the file extension ".conf".
+ */
+#include_recursive "conf.d"
index 08799577ca384dbbe07d66e04cfe1e4120884b67..df773e4c29bb464719ad20b9f2b38b0576154f4e 100644 (file)
@@ -1,23 +1,58 @@
 /*
- * Generated by Icinga 2 node setup commands
- * on 2017-10-13 15:55:47 +0200
+ * Endpoint and Zone configuration for a cluster setup
+ * This local example requires `NodeName` defined in
+ * constants.conf.
  */
 
 object Endpoint "ns1.uhu-banane.de" {
-       host = "ns1.uhu-banane.de"
-       port = "5665"
 }
 
 object Zone "master" {
-       endpoints = [ "ns1.uhu-banane.de" ]
+        endpoints = [ "ns1.uhu-banane.de" ]
 }
 
 object Endpoint NodeName {
 }
 
 object Zone ZoneName {
-       endpoints = [ NodeName ]
-       parent = "master"
+  endpoints = [ NodeName ]
+  parent = "master"
 }
 
+/*
+ * Defines a global zone containing templates,
+ * etc. synced to all nodes, if they accept
+ * configuration. All remote nodes need
+ * this zone configured too.
+ */
+
+/*
+object Zone "global-templates" {
+  global = true
+}
+*/
+
+/*
+ * Read the documentation on how to configure
+ * a cluster setup with multiple zones.
+ */
+
+/*
+object Endpoint "master.example.org" {
+  host = "master.example.org"
+}
+
+object Endpoint "satellite.example.org" {
+  host = "satellite.example.org"
+}
+
+object Zone "master" {
+  endpoints = [ "master.example.org" ]
+}
+
+object Zone "satellite" {
+  parent = "master"
+  endpoints = [ "satellite.example.org" ]
+}
+*/
 
diff --git a/icinga2/zones.conf.bla b/icinga2/zones.conf.bla
new file mode 100644 (file)
index 0000000..0f2e353
--- /dev/null
@@ -0,0 +1,31 @@
+/*
+ * Generated by Icinga 2 node setup commands
+ * on 2021-04-15 13:31:05 +0200
+ */
+
+object Endpoint "icinga.uhu-banane.de" {
+       host = "icinga.uhu-banane.de"
+       port = "5665"
+}
+
+object Zone "master" {
+       endpoints = [ "icinga.uhu-banane.de" ]
+}
+
+object Endpoint "sarah.uhu-banane.de" {
+}
+
+object Zone "sarah.uhu-banane.de" {
+       endpoints = [ "sarah.uhu-banane.de" ]
+       parent = "master"
+}
+
+object Zone "global-templates" {
+       global = true
+}
+
+object Zone "director-global" {
+       global = true
+}
+
+
diff --git a/icinga2/zones.conf.orig b/icinga2/zones.conf.orig
deleted file mode 100644 (file)
index 9c76de7..0000000
+++ /dev/null
@@ -1,51 +0,0 @@
-/*
- * Endpoint and Zone configuration for a cluster setup
- * This local example requires `NodeName` defined in
- * constants.conf.
- */
-
-object Endpoint NodeName {
-  host = NodeName
-}
-
-object Zone ZoneName {
-  endpoints = [ NodeName ]
-}
-
-/*
- * Defines a global zone containing templates,
- * etc. synced to all nodes, if they accept
- * configuration. All remote nodes need
- * this zone configured too.
- */
-
-/*
-object Zone "global-templates" {
-  global = true
-}
-*/
-
-/*
- * Read the documentation on how to configure
- * a cluster setup with multiple zones.
- */
-
-/*
-object Endpoint "master.example.org" {
-  host = "master.example.org"
-}
-
-object Endpoint "satellite.example.org" {
-  host = "satellite.example.org"
-}
-
-object Zone "master" {
-  endpoints = [ "master.example.org" ]
-}
-
-object Zone "satellite" {
-  parent = "master"
-  endpoints = [ "satellite.example.org" ]
-}
-*/
-
diff --git a/motd b/motd
index ff600f3f361425f2c47afe4262523ab7cd2a5563..d36efc9a25a37f717b348aaa01692db4210d0ce9 100644 (file)
--- a/motd
+++ b/motd
@@ -6,9 +6,9 @@ Debian GNU/Linux 10 (buster)
 |____/ \__,_|_|  \__,_|_| |_|
                              
 
-Versprechen, die im Freudenrausch gemacht wurden
-verlieren zu Hause ihre Gültigkeit.
-               -- Al Bundy
+Die Männer haben im Zorn mehr Mitleid, die Weiber vor- und nachher.
+Habt ihr je eine Frau mitten im Zorne einhalten sehen?
+               -- Jean Paul
 
 Today is Setting Orange, the 32nd day of Discord in the YOLD 3187