]> Frank Brehm's Git Trees - pixelpark/hiera.git/commitdiff
pixelpark - dev-monitoring: add check_ntp_peer
authorThomas Dalichow <thomas.dalichow@publicispixelpark.de>
Mon, 7 May 2018 16:17:01 +0000 (18:17 +0200)
committerThomas Dalichow <thomas.dalichow@publicispixelpark.de>
Mon, 7 May 2018 16:17:06 +0000 (18:17 +0200)
customer/pixelpark/dev-monitoring.pixelpark.com.yaml

index 2cd443152ec62297127ea33e39eb2beb853acc40..cb005766184f8fe3625ace46de347baf555b91d7 100644 (file)
@@ -192,7 +192,22 @@ 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 the postfix unit exists, is enabled and is running'
+    notes: 'This checks, whether the mail queue contains mails'
+  'ntp-status':
+    target: '/etc/icinga2/conf.d/default-services.conf'
+    import:
+      - 'generic-service'
+    check_command: 'ntp_peer'
+    vars:
+      'ntp_peer_warning': 1
+      'ntp_peer_critical': 5
+      'ntp_peer_host': 'time.pixelpark.com'
+#_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 the time difference to time.pixelpark.com'
 #  'disk':
 #    target: '/etc/icinga2/conf.d/default-services.conf'
 #    import: