]> Frank Brehm's Git Trees - pixelpark/hiera.git/commitdiff
pixelpark - dev-monitoring: default crond check
authorThomas Dalichow <thomas.dalichow@publicispixelpark.de>
Mon, 16 Apr 2018 15:34:01 +0000 (17:34 +0200)
committerThomas Dalichow <thomas.dalichow@publicispixelpark.de>
Mon, 16 Apr 2018 15:34:06 +0000 (17:34 +0200)
customer/pixelpark/dev-monitoring.pixelpark.com.yaml

index 15198d5a1ea6bf03b2f1a2f412f72177feab206a..694e0246eb2261e5416c241a72bf52a55bca8d28 100644 (file)
@@ -9,6 +9,12 @@ infra::additional_classes:
 repo::redhat::oel7::ol7_software_collections_enable: '1'
 
 
+# TODO:
+
+PixelparkPluginDir muss definiert und ersetzt werden an den Stellen, die mit _ppplugindir_ gemarkert sind
+
+# TODO END
+
 # icinga2
 
 infra::profile::icinga2::client::install_client: true
@@ -119,7 +125,7 @@ infra::profile::icinga2::object::service:
     apply: true
     assign:
       - 'host.address'
-    notes: 'Das ist ein SSH-Check'
+    notes: 'This is an SSH check'
   'load':
     target: '/etc/icinga2/conf.d/default-services.conf'
     import:
@@ -129,7 +135,19 @@ infra::profile::icinga2::object::service:
     apply: true
     assign:
       - 'host.address && host.name == dev-monitoring-client.pixelpark.com'
-    notes: 'Das ist ein SSH-Check'
+    notes: 'This is a load check'
+  'service-crond':
+    target: '/etc/icinga2/conf.d/default-services.conf'
+    import:
+      - 'generic-service'
+    check_command: 'check'
+#_ppplugindir_
+    command = [ "/opt/pixelpark-checks + "check_service", "crond" ]
+    command_endpoint: 'host.name'
+    apply: true
+    assign:
+      - 'host.address && host.name == dev-monitoring-client.pixelpark.com'
+    notes: 'This checks, whether crond exists, is enabled and is running'
 #  'disk':
 #    target: '/etc/icinga2/conf.d/default-services.conf'
 #    import: