]> Frank Brehm's Git Trees - pixelpark/hiera.git/commitdiff
pixelpark - dev-monitoring: add mailq check
authorThomas Dalichow <thomas.dalichow@publicispixelpark.de>
Mon, 7 May 2018 14:57:33 +0000 (16:57 +0200)
committerThomas Dalichow <thomas.dalichow@publicispixelpark.de>
Mon, 7 May 2018 14:57:36 +0000 (16:57 +0200)
customer/pixelpark/dev-monitoring.pixelpark.com.yaml

index c05c8a753eff4063b1115a2aba36ff8c2bc5d693..15c27ee020d536f566c7b285f0242f235b55e93b 100644 (file)
@@ -172,6 +172,20 @@ infra::profile::icinga2::object::service:
     import:
       - 'generic-service'
     check_command: 'check_service_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 postfix unit exists, is enabled and is running'
+  'postfix-queue-status':
+    target: '/etc/icinga2/conf.d/default-services.conf'
+    import:
+      - 'generic-service'
+    check_command: 'mailq'
+    vars:
+      'warning': 1
+      'critical': 5
 #_ppplugindir_
     command_endpoint: 'host.name'
     apply: true