]> Frank Brehm's Git Trees - pixelpark/hiera.git/commitdiff
pixelpark - dev-monitoring: add checks for rsyslogd and postfix
authorThomas Dalichow <thomas.dalichow@publicispixelpark.de>
Thu, 3 May 2018 13:55:26 +0000 (15:55 +0200)
committerThomas Dalichow <thomas.dalichow@publicispixelpark.de>
Thu, 3 May 2018 13:55:38 +0000 (15:55 +0200)
customer/pixelpark/dev-monitoring.pixelpark.com.yaml

index 85773c4ac16cb2fc7a5d24db1bffebf4a4ad99ae..5c2d497e560ff721802e04ec01b93c0ea21fba40 100644 (file)
@@ -134,7 +134,18 @@ infra::profile::icinga2::object::service:
     assign:
       - 'host.address && (host.name == dev-monitoring-client.pixelpark.com || host.name == dev-monitoring.pixelpark.com)'
     notes: 'This is a load check'
-  'service-crond':
+  'systemd-status':
+    target: '/etc/icinga2/conf.d/default-services.conf'
+    import:
+      - 'generic-service'
+    check_command: 'check_systemd'
+#_ppplugindir_
+    command_endpoint: 'host.name'
+    apply: true
+    assign:
+      - 'host.address && (host.name == dev-monitoring-client.pixelpark.com || host.name == dev-monitoring.pixelpark.com)'
+    notes: 'This checks, what systemd thinks of the overall system state'
+  'crond-service-status':
     target: '/etc/icinga2/conf.d/default-services.conf'
     import:
       - 'generic-service'
@@ -144,18 +155,29 @@ infra::profile::icinga2::object::service:
     apply: true
     assign:
       - 'host.address && (host.name == dev-monitoring-client.pixelpark.com || host.name == dev-monitoring.pixelpark.com)'
-    notes: 'This checks, whether crond exists, is enabled and is running'
-  'systemd-status':
+    notes: 'This checks, whether the crond unit exists, is enabled and is running'
+  'rsyslogd-service-status':
     target: '/etc/icinga2/conf.d/default-services.conf'
     import:
       - 'generic-service'
-    check_command: 'check_systemd'
+    check_command: 'check_rsyslogd'
 #_ppplugindir_
     command_endpoint: 'host.name'
     apply: true
     assign:
       - 'host.address && (host.name == dev-monitoring-client.pixelpark.com || host.name == dev-monitoring.pixelpark.com)'
-    notes: 'This checks, what systemd thinks of the overall system state'
+    notes: 'This checks, whether the rsyslogd unit exists, is enabled and is running'
+  'postfix-service-status':
+    target: '/etc/icinga2/conf.d/default-services.conf'
+    import:
+      - 'generic-service'
+    check_command: 'check_postfix'
+#_ppplugindir_
+    command_endpoint: 'host.name'
+    apply: true
+    assign:
+      - 'host.address && (host.name == dev-monitoring-client.pixelpark.com || host.name == dev-monitoring.pixelpark.com)'
+    notes: 'This checks, whether the rsyslogd unit exists, is enabled and is running'
 #  'disk':
 #    target: '/etc/icinga2/conf.d/default-services.conf'
 #    import:
@@ -177,6 +199,16 @@ infra::profile::icinga2::object::checkcommand:
       - 'ipv4-or-ipv6' 
     command: '/opt/pixelpark-monitoring-checks/check_service crond' 
     target: '/etc/icinga2/conf.d/pixelpark-monitoring-checkcommands.conf' 
+  'check_service_rsyslogd': 
+    import: 
+      - 'ipv4-or-ipv6' 
+    command: '/opt/pixelpark-monitoring-checks/check_service rsyslogd' 
+    target: '/etc/icinga2/conf.d/pixelpark-monitoring-checkcommands.conf' 
+  'check_service_postfix': 
+    import: 
+      - 'ipv4-or-ipv6' 
+    command: '/opt/pixelpark-monitoring-checks/check_service postfix' 
+    target: '/etc/icinga2/conf.d/pixelpark-monitoring-checkcommands.conf' 
   'check_systemd': 
     import: 
       - 'ipv4-or-ipv6'