]> Frank Brehm's Git Trees - config/ns1/etc.git/commitdiff
saving uncommitted changes in /etc prior to apt run
authorFrank Brehm <frank@brehm-online.com>
Tue, 10 Oct 2017 21:26:04 +0000 (23:26 +0200)
committerFrank Brehm <frank@brehm-online.com>
Tue, 10 Oct 2017 21:26:04 +0000 (23:26 +0200)
16 files changed:
.etckeeper
icinga2/conf.d/api-users.conf
icinga2/conf.d/ns1.conf
icinga2/conf.d/ns1/apt.conf
icinga2/conf.d/ns1/icinga.conf
icinga2/conf.d/ns1/load.conf
icinga2/conf.d/ns1/procs.conf
icinga2/conf.d/ns1/swap.conf
icinga2/conf.d/ns1/users.conf
icinga2/conf.d/services/dns.conf
icinga2/constants.conf
icinga2/constants.conf.orig [new file with mode: 0644]
icinga2/features-available/api.conf
icinga2/features-available/api.conf.orig [new file with mode: 0644]
icinga2/zones.conf
icinga2/zones.conf.orig [new file with mode: 0644]

index eb4c6774c2a620c6fcb09e923f4eee7308ab3ae7..225736c17396bdd2648578884146ede96becc52d 100755 (executable)
@@ -826,8 +826,10 @@ 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 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'
@@ -866,6 +868,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 0755 'icinga2/zones.d'
 maybe chmod 0644 'icinga2/zones.d/README'
 maybe chmod 0755 'init'
index 022b8d572ee1453d9637ead3aac188dbae7467e3..22bd9bc80012edade13b84b98499e0157df8a18c 100644 (file)
@@ -7,3 +7,10 @@ object ApiUser "root" {
 
   permissions = [ "*" ]
 }
+
+object ApiUser "client-pki-ticket" {
+  password = "aixeirqieghae3ahngo9mei3"
+  permissions = [ "actions/generate-ticket" ]
+}
+
+
index f1866375ba67efbee8e8bf723c0b22b4f1fa8d02..4cb562dece07f7ce3627950b8f6fb965cfbd2e4e 100644 (file)
@@ -1,5 +1,5 @@
 
-object Host "ns1" {
+object Host "ns1.uhu-banane.de" {
   /* Import the default host template defined in `templates.conf`. */
   import "generic-host"
 
index a8a63e0f12a36f6ede890c3b15b76f94dd0d3831..9ccc2163eea3d445b00f0fe85a7bdcec90b669e7 100644 (file)
@@ -4,6 +4,6 @@ apply Service "apt" {
   check_command = "apt"
   enable_notifications = false
 
-  assign where host.name == "ns1"
+  assign where host.name == "ns1.uhu-banane.de"
 
 }
index 3b7249b507bc25dc7146e664ccaf820be0548ef0..21de23383344d9cbbb46ecfe024f9e712e9863cc 100644 (file)
@@ -4,6 +4,6 @@ apply Service "icinga" {
 
   check_command = "icinga"
 
-  assign where host.name == "ns1"
+  assign where host.name == "ns1.uhu-banane.de"
 }
 
index b16d6c3ef55257e20129c8a079d26d2f481bbaca..050186a85f516ff6aaa72136d61a2fd85234902f 100644 (file)
@@ -7,7 +7,7 @@ apply Service "load" {
   /* Used by the ScheduledDowntime apply rule in `downtimes.conf`. */
   vars.backup_downtime = "02:00-03:00"
 
-  assign where host.name == "ns1"
+  assign where host.name == "ns1.uhu-banane.de"
 
 }
 
index 09dcd955b5690cf8cf3f8212420fd1035d4ba5c6..9abf65c12186d7028270e567e8c3476d44329739 100644 (file)
@@ -4,6 +4,6 @@ apply Service "procs" {
 
   check_command = "procs"
 
-  assign where host.name == "ns1"
+  assign where host.name == "ns1.uhu-banane.de"
 }
 
index 6ccd390db4c2e0c873fc72dc6911c40cd496d0b9..05e2b7bdaf934418dcb46faea0e044556f53c01e 100644 (file)
@@ -4,6 +4,6 @@ apply Service "swap" {
 
   check_command = "swap"
 
-  assign where host.name == "ns1"
+  assign where host.name == "ns1.uhu-banane.de"
 }
 
index 63d6dc7207930a099fd4dfb3bbf7f5f3ac278c0b..88ebacfe8decc79a4434bdeea5beb6544ed5df62 100644 (file)
@@ -4,6 +4,6 @@ apply Service "users" {
 
   check_command = "users"
 
-  assign where host.name == "ns1"
+  assign where host.name == "ns1.uhu-banane.de"
 }
 
index f6e118516a1cf4e0a1d74acfc5207e949745e652..f28638db94202961397c766f83ffee32d84631c6 100644 (file)
@@ -1,7 +1,7 @@
 
 apply Service "proc named" {
   import "generic-service"
-  #host_name = "ns1"
+  #host_name = "ns1.uhu-banane.de"
 
   check_command = "procs"
   vars.procs_argument = "/usr/sbin/named"
index 29232d618e56f5e33de9e462583c3802e9e8a62d..c27ef8c0bb97645a05e6e35d34372b52c3716b9c 100644 (file)
@@ -19,10 +19,10 @@ 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"
+const NodeName = "ns1.uhu-banane.de"
 
 /* Our local zone name. */
-const ZoneName = NodeName
+const ZoneName = "ns1.uhu-banane.de"
 
 /* Secret key for remote node tickets */
-const TicketSalt = ""
+const TicketSalt = "4d6b7086706aa4aa3d43bafb7df4b6c2"
diff --git a/icinga2/constants.conf.orig b/icinga2/constants.conf.orig
new file mode 100644 (file)
index 0000000..29232d6
--- /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 = "localhost"
+
+/* Our local zone name. */
+const ZoneName = NodeName
+
+/* Secret key for remote node tickets */
+const TicketSalt = ""
index 0136de0b2289463a8a7f9572b3ef55af9e252134..28bf922e7a3d4c2c9f296d5fc5e0b18df2819787 100644 (file)
@@ -1,7 +1,6 @@
 /**
  * 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"
diff --git a/icinga2/features-available/api.conf.orig b/icinga2/features-available/api.conf.orig
new file mode 100644 (file)
index 0000000..0136de0
--- /dev/null
@@ -0,0 +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"
+
+  ticket_salt = TicketSalt
+}
index 70ac766d86606fc44eaab37ef0157b9b0f6a1b75..d81674b9c7295dfe22b8d526efa57cd3ed0c4acd 100644 (file)
@@ -1,63 +1,13 @@
 /*
- * Endpoint and Zone configuration for a cluster setup
- * This local example requires `NodeName` defined in
- * constants.conf.
+ * Generated by Icinga 2 node setup commands
+ * on 2017-10-10 22:56:42 +0200
  */
 
 object Endpoint NodeName {
-  host = NodeName
 }
 
 object Zone ZoneName {
-  endpoints = [ NodeName ]
+       endpoints = [ NodeName ]
 }
 
-/*
- * Defines a global zone for distributed setups with masters,
- * satellites and clients.
- * This is required to sync configuration commands,
- * templates, apply rules, etc. to satellite and clients.
- * All nodes require the same configuration and must
- * have `accept_config` enabled in the `api` feature.
- */
-
-object Zone "global-templates" {
-  global = true
-}
-
-/*
- * Defines a global zone for the Icinga Director.
- * This is required to sync configuration commands,
- * templates, apply rules, etc. to satellite and clients.
- * All nodes require the same configuration and must
- * have `accept_config` enabled in the `api` feature.
- */
-
-object Zone "director-global" {
-  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.orig b/icinga2/zones.conf.orig
new file mode 100644 (file)
index 0000000..70ac766
--- /dev/null
@@ -0,0 +1,63 @@
+/*
+ * 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 for distributed setups with masters,
+ * satellites and clients.
+ * This is required to sync configuration commands,
+ * templates, apply rules, etc. to satellite and clients.
+ * All nodes require the same configuration and must
+ * have `accept_config` enabled in the `api` feature.
+ */
+
+object Zone "global-templates" {
+  global = true
+}
+
+/*
+ * Defines a global zone for the Icinga Director.
+ * This is required to sync configuration commands,
+ * templates, apply rules, etc. to satellite and clients.
+ * All nodes require the same configuration and must
+ * have `accept_config` enabled in the `api` feature.
+ */
+
+object Zone "director-global" {
+  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" ]
+}
+*/
+