]> Frank Brehm's Git Trees - pixelpark/hiera.git/commitdiff
pixelpark - dev-monitoring: add check_disk
authorThomas Dalichow <thomas.dalichow@publicispixelpark.de>
Tue, 8 May 2018 13:56:32 +0000 (15:56 +0200)
committerThomas Dalichow <thomas.dalichow@publicispixelpark.de>
Tue, 8 May 2018 13:56:32 +0000 (15:56 +0200)
customer/pixelpark/dev-monitoring.pixelpark.com.yaml

index cb005766184f8fe3625ace46de347baf555b91d7..0c32fab6e92e2b53cc1a62459c085fda93eb0997 100644 (file)
@@ -134,6 +134,16 @@ 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'
+  'disk':
+    target: '/etc/icinga2/conf.d/default-services.conf'
+    import:
+      - 'generic-service'
+    check_command: 'disk'
+    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 there is enough local disk space left'
   'systemd-status':
     target: '/etc/icinga2/conf.d/default-services.conf'
     import: