]> Frank Brehm's Git Trees - config/helga-hetzner/etc.git/commitdiff
daily autocommit
authorFrank Brehm <frank@brehm-online.com>
Sat, 17 Apr 2021 04:25:04 +0000 (06:25 +0200)
committerFrank Brehm <frank@brehm-online.com>
Sat, 17 Apr 2021 04:25:04 +0000 (06:25 +0200)
fstab
icinga2/features-available/api.conf
icinga2/icinga2.conf
icinga2/zones.conf
logrotate.d/icinga2
motd

diff --git a/fstab b/fstab
index cc1ac125bae253f716df6d37f7b7e3c58dbbd666..32c4361efb4cbb6f77177dff8fb5a8f2b93d7bb1 100644 (file)
--- a/fstab
+++ b/fstab
@@ -10,6 +10,7 @@ UUID=0898636c-989a-4733-a7a7-c4d27fd648ad     /               ext4            errors=remount-ro       0       1
 # /boot/efi was on /dev/sda2 during installation
 UUID=B45B-E011                                 /boot/efi       vfat            umask=0077              0       1
 /dev/sr0                                       /media/cdrom0   udf,iso9660     user,noauto             0       0
+/swap                                          none            swap            sw                      0       0
 /dev/data/backup                               /var/backup     ext4            noatime                 0       0
 /dev/data/home                                 /home           ext4            acl,user_xattr          0       0
 /dev/data/mysql                                        /var/lib/mysql  ext4            noatime                 0       0
index 677a96e00c88cce507c24a694385fc52e7021f3d..21fb7edbe396f6daa43cb15a583dbea0a34850ef 100644 (file)
@@ -2,10 +2,12 @@
  * 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"
+  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
 }
index 187834f504b6bbe83002d127a88ee4be23bf34ca..b1f0c03cd3a601522d84cc8006a5fd1a2553e596 100644 (file)
@@ -49,6 +49,12 @@ include <nscp>
  */
 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
@@ -56,3 +62,6 @@ include "features-enabled/*.conf"
  */
 // Disabled by the node setup CLI command on 2021-04-15 13:33:04 +0200
 // include_recursive "conf.d"
+
+/* vim: filetype=icinga2
+*/
index bfa71edbf38d08f84ab31f0bb453dec8150be4a5..12363894d87432d174b8e5c31e8f106633eb510d 100644 (file)
@@ -4,28 +4,34 @@
  */
 
 object Endpoint "ns1.uhu-banane.de" {
-       host = "ns1.uhu-banane.de"
-       port = "5665"
 }
 
 object Zone "master" {
        endpoints = [ "ns1.uhu-banane.de" ]
 }
 
-object Endpoint "helga.uhu-banane.de" {
+object Endpoint NodeName {
 }
 
-object Zone "helga.uhu-banane.de" {
-       endpoints = [ "helga.uhu-banane.de" ]
-       parent = "master"
+object Zone ZoneName {
+        endpoints = [ NodeName ]
+        parent = "master"
 }
 
-object Zone "global-templates" {
-       global = true
-}
-
-object Zone "director-global" {
-       global = true
-}
+# object Endpoint "helga.uhu-banane.de" {
+# }
+# 
+# object Zone "helga.uhu-banane.de" {
+#      endpoints = [ "helga.uhu-banane.de" ]
+#      parent = "master"
+# }
+# 
+# object Zone "global-templates" {
+#      global = true
+# }
+# 
+# object Zone "director-global" {
+#      global = true
+# }
 
 
index df45df74aafc234b1a0214258125776c53c10d0e..9831814370a2304d571daf04151ba0bdfb8aba15 100644 (file)
@@ -1,23 +1,28 @@
-/var/log/icinga2/icinga2.log /var/log/icinga2/debug.log {
+# /var/log/icinga2/icinga2.log /var/log/icinga2/debug.log {
+/var/log/icinga2/*.log {
        daily
        rotate 7
        compress
        delaycompress
        missingok
        notifempty
-       create 644 nagios nagios
+       minsize 4M
+       olddir /var/log/icinga2/.old
+       create 644 nagios adm
        postrotate
                /bin/kill -USR1 $(cat /run/icinga2/icinga2.pid 2> /dev/null) 2> /dev/null || true
        endscript
 }
 
-/var/log/icinga2/error.log {
-       daily
-       rotate 90
-       compress
-       delaycompress
-       missingok
-       notifempty
-       create 644 nagios nagios
-       # TODO: figure out how to get Icinga to re-open this log file
-}
+# /var/log/icinga2/error.log {
+#      daily
+#      rotate 90
+#      compress
+#      delaycompress
+#      missingok
+#      notifempty
+#      create 644 nagios nagios
+#      # TODO: figure out how to get Icinga to re-open this log file
+# }
+
+# vim: ts=4 filetype=conf noet
diff --git a/motd b/motd
index bd5093e7e289d03fc5edcb47da10f7910aa4260e..89cebfcd9cd2ec7f01bff5335d8e875f8046431c 100644 (file)
--- a/motd
+++ b/motd
@@ -6,9 +6,29 @@ Debian GNU/Linux 10 (buster)
 |_| |_|\___|_|\__, |\__,_|
               |___/       
 
-Vertraue keinem Kostenplan, von dem Du keinen Quellcode
-(detaillierte Aufstellung) bekommst.
-               -- Michael Uhlemann
+  Kleine Geschichte
 
-Today is Sweetmorn, the 33rd day of Discord in the YOLD 3187
+Litt einst ein Fähnlein große Not,
+halb war es gelb, halb war es rot
+und wollte gern zusammen
+zu einer lichten Flammen.
+
+Es zog sich, wand sich, wellte sich,
+es knitterte, es schnellte sich -
+umsonst! es mocht nicht glücken,
+die Naht zu überbrücken.
+
+Da kam ein Wolkenbruch daher
+und wusch das Fähnlein kreuz und quer,
+daß Rot und Gelb, zerflossen,
+voll Inbrunst sich genossen.
+
+Des Fähnleins Herren freilich war
+des Vorgangs Freudigkeit nicht klar -
+indes, die sich besaßen,
+nun alle Welt vergaßen.
+
+               -- Christian Morgenstern
+
+Today is Boomtime, the 34th day of Discord in the YOLD 3187