]> Frank Brehm's Git Trees - config/ns1/etc.git/commitdiff
daily autocommit
authorFrank Brehm <frank@brehm-online.com>
Sat, 6 Jan 2018 05:39:16 +0000 (06:39 +0100)
committerFrank Brehm <frank@brehm-online.com>
Sat, 6 Jan 2018 05:39:16 +0000 (06:39 +0100)
.etckeeper
fail2ban/jail.conf
icinga2/zones.d/master/cron.conf [new file with mode: 0644]
icinga2/zones.d/master/hosts.conf
icinga2/zones.d/master/mail.conf [new file with mode: 0644]
icinga2/zones.d/master/salt.conf [new file with mode: 0644]
icinga2/zones.d/master/services.conf

index 67f7df2a29790fe4fd106df9d1a14ae10a993fdf..a72dd51fab3e4c2979688d40ce80b79f05592542 100755 (executable)
@@ -874,7 +874,10 @@ maybe chmod 0644 'icinga2/zones.conf.orig'
 maybe chmod 0755 'icinga2/zones.d'
 maybe chmod 0644 'icinga2/zones.d/README'
 maybe chmod 0755 'icinga2/zones.d/master'
+maybe chmod 0644 'icinga2/zones.d/master/cron.conf'
 maybe chmod 0644 'icinga2/zones.d/master/hosts.conf'
+maybe chmod 0644 'icinga2/zones.d/master/mail.conf'
+maybe chmod 0644 'icinga2/zones.d/master/salt.conf'
 maybe chmod 0644 'icinga2/zones.d/master/services.conf'
 maybe chmod 0755 'init'
 maybe chmod 0755 'init.d'
index 235d832a9073d8fabd0058c3b1462df903282e20..e2b0743273423be88fdd2f9ea21c1860ef11c989 100644 (file)
@@ -47,7 +47,7 @@ before = paths-debian.conf
 # "ignoreip" can be an IP address, a CIDR mask or a DNS host. Fail2ban will not
 # ban a host which matches an address in this list. Several addresses can be
 # defined using space (and/or comma) separator.
-ignoreip = 127.0.0.1/8
+ignoreip = 127.0.0.1/8 10.0.0.0/8 172.16.0.0/12 192.168.0.0/16 185.48.118.128 162.254.24.33 185.102.95.107 185.48.118.130
 
 # External command that will take an tagged arguments to ignore, e.g. <ip>,
 # and return true if the IP is to be ignored. False otherwise.
diff --git a/icinga2/zones.d/master/cron.conf b/icinga2/zones.d/master/cron.conf
new file mode 100644 (file)
index 0000000..0f7b459
--- /dev/null
@@ -0,0 +1,19 @@
+apply Service "proc cron" {
+  import "generic-service"
+
+  if ( host.vars.client_endpoint ) {
+    // specify where the check is executed
+    command_endpoint = host.vars.client_endpoint
+  }
+
+  check_command = "procs"
+  vars.procs_argument = "/usr/sbin/cron"
+  vars.procs_ppid = 1
+  vars.procs_warning = "1:1"
+  vars.procs_critical = "1:2"
+  vars.procs_user = "root"
+
+  assign where host.address
+
+}
+
index f552d8d262fe2f4cea0b2c2e4fd0ef4f0d2f4a9a..db80665cc1565dfe7e71d8fea04d0e01e32b149b 100644 (file)
@@ -59,6 +59,7 @@ object Host "ns3.uhu-banane.de" {
   vars.mailq_warning = 3
   vars.mailq_critical = 10
 
+  vars.is_salt_master = true
 
   /* Define http vhost attributes for service apply rules in `services.conf`. */
   vars.http_vhosts["http"] = {
diff --git a/icinga2/zones.d/master/mail.conf b/icinga2/zones.d/master/mail.conf
new file mode 100644 (file)
index 0000000..b0a4a3d
--- /dev/null
@@ -0,0 +1,63 @@
+
+apply Service "mailq" {
+  import "generic-service"
+
+  check_command = "mailq"
+
+  if ( host.vars.client_endpoint ) {
+    // specify where the check is executed
+    command_endpoint = host.vars.client_endpoint
+  }
+
+  vars.mailq_warning = 100
+  vars.mailq_critical = 300
+
+  assign where host.vars.is_mta && ! host.vars.is_mail_sattelite
+}
+
+apply Service "mailq" {
+  import "generic-service"
+
+  check_command = "mailq"
+
+  if ( host.vars.client_endpoint ) {
+    // specify where the check is executed
+    command_endpoint = host.vars.client_endpoint
+  }
+
+  vars.mailq_warning = 3
+  vars.mailq_critical = 10
+
+  assign where host.vars.is_mail_sattelite
+}
+
+apply Service "proc postfix" {
+  import "generic-service"
+
+  if ( host.vars.client_endpoint ) {
+    // specify where the check is executed
+    command_endpoint = host.vars.client_endpoint
+  }
+
+  check_command = "procs"
+  vars.procs_argument = "/usr/lib/postfix/sbin/master"
+  vars.procs_ppid = 1
+  vars.procs_warning = "1:1"
+  vars.procs_critical = "1:2"
+  vars.procs_user = "root"
+
+  assign where host.vars.is_mta || host.vars.is_mail_sattelite
+}
+
+apply Service "smtp" {
+  import "generic-service"
+  check_command = "smtp"
+  assign where host.vars.is_mta && ! host.vars.is_mail_sattelite
+}
+
+apply Service "imap" {
+  import "generic-service"
+  check_command = "imap"
+  assign where host.vars.is_imap_server
+}
+
diff --git a/icinga2/zones.d/master/salt.conf b/icinga2/zones.d/master/salt.conf
new file mode 100644 (file)
index 0000000..9695c1b
--- /dev/null
@@ -0,0 +1,38 @@
+
+apply Service "proc salt-minion" {
+  import "generic-service"
+
+  if ( host.vars.client_endpoint ) {
+    // specify where the check is executed
+    command_endpoint = host.vars.client_endpoint
+  }
+
+  check_command = "procs"
+  vars.procs_argument = "/usr/bin/salt-minion"
+  vars.procs_ppid = 1
+  vars.procs_warning = "1:1"
+  vars.procs_critical = "1:2"
+  vars.procs_user = "root"
+
+  assign where host.address
+
+}
+
+apply Service "proc salt-master" {
+  import "generic-service"
+
+  if ( host.vars.client_endpoint ) {
+    // specify where the check is executed
+    command_endpoint = host.vars.client_endpoint
+  }
+
+  check_command = "procs"
+  vars.procs_argument = "/usr/bin/salt-master"
+  vars.procs_ppid = 1
+  vars.procs_warning = "1:1"
+  vars.procs_critical = "1:2"
+  vars.procs_user = "root"
+
+  assign where host.vars.is_salt_master
+}
+
index 636e5ff49c4ff76f07c5631800715d6812924177..07d4bcd70806c551a4ff89a27ae40a78b4e09035 100644 (file)
@@ -79,65 +79,3 @@ apply Service "users" {
   assign where host.vars.client_endpoint
 }
 
-apply Service "mailq" {
-  import "generic-service"
-
-  check_command = "mailq"
-
-  if ( host.vars.client_endpoint ) {
-    // specify where the check is executed
-    command_endpoint = host.vars.client_endpoint
-  }
-
-  vars.mailq_warning = 100
-  vars.mailq_critical = 300
-
-  assign where host.vars.is_mta && ! host.vars.is_mail_sattelite
-}
-
-apply Service "mailq" {
-  import "generic-service"
-
-  check_command = "mailq"
-
-  if ( host.vars.client_endpoint ) {
-    // specify where the check is executed
-    command_endpoint = host.vars.client_endpoint
-  }
-
-  vars.mailq_warning = 3
-  vars.mailq_critical = 10
-
-  assign where host.vars.is_mail_sattelite
-}
-
-apply Service "proc postfix" {
-  import "generic-service"
-
-  if ( host.vars.client_endpoint ) {
-    // specify where the check is executed
-    command_endpoint = host.vars.client_endpoint
-  }
-
-  check_command = "procs"
-  vars.procs_argument = "/usr/lib/postfix/sbin/master"
-  vars.procs_ppid = 1
-  vars.procs_warning = "1:1"
-  vars.procs_critical = "1:2"
-  vars.procs_user = "root"
-
-  assign where host.vars.is_mta || host.vars.is_mail_sattelite
-}
-
-apply Service "smtp" {
-  import "generic-service"
-  check_command = "smtp"
-  assign where host.vars.is_mta && ! host.vars.is_mail_sattelite
-}
-
-apply Service "imap" {
-  import "generic-service"
-  check_command = "imap"
-  assign where host.vars.is_imap_server
-}
-