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

index c633620e997dac4d552991ad2155d9d649ce0143..a7706eaf834b133fa8562dba1f5d444838f2a50d 100644 (file)
@@ -206,7 +206,7 @@ infra::profile::icinga2::object::service:
     assign:
       - 'host.address && (host.name == dev-monitoring-client.pixelpark.com || host.name == dev-monitoring.pixelpark.com)'
     notes: 'This checks, whether the mail queue contains mails'
-  'ntp-status':
+  'ntp-offset':
     target: '/etc/icinga2/conf.d/default-services.conf'
     import:
       - 'generic-service'
@@ -221,6 +221,20 @@ infra::profile::icinga2::object::service:
     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'
+  'swap':
+    target: '/etc/icinga2/conf.d/default-services.conf'
+    import:
+      - 'generic-service'
+    check_command: 'ntp_peer'
+    vars:
+      'swap_wfree': '20%'
+      'swap_cfree': '10%'
+#_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 for free SWAP space'
 #  'disk':
 #    target: '/etc/icinga2/conf.d/default-services.conf'
 #    import: