]> Frank Brehm's Git Trees - pixelpark/hiera.git/commitdiff
pixelpark - dev-monitoring: change by_ssh_template
authorThomas Dalichow <thomas.dalichow@publicispixelpark.de>
Thu, 17 May 2018 13:32:07 +0000 (15:32 +0200)
committerThomas Dalichow <thomas.dalichow@publicispixelpark.de>
Thu, 17 May 2018 13:32:38 +0000 (15:32 +0200)
customer/pixelpark/dev-monitoring.pixelpark.com.yaml

index 572d78d534ec0baa100883a9d3da1057d2eb07ca..94423832d9be5335b2a8ba4d71da2a77791fab2a 100644 (file)
@@ -108,7 +108,9 @@ infra::profile::icinga2::object::service:
     check_command: 'by_ssh'
     vars:
       'original_check_command': check_command
-    check_command: 'by_ssh'
+      'by_ssh_address': host.name
+      'by_ssh_logname': 'monitoring'
+      'by_ssh_identity': '/opt/pixelpark-monitoring-checks/monitoring.key'
   'active-directory':
     target: '/etc/icinga2/conf.d/services.conf'
     import:
@@ -153,17 +155,13 @@ infra::profile::icinga2::object::service:
     assign:
       - 'host.address && (host.name == dev-monitoring-client.pixelpark.com || host.name == dev-monitoring.pixelpark.com) && host.vars.os == Linux'
     notes: 'This checks whether there is enough local disk space left'
-  'solaris-disk':
+  'service-system-log':
     target: '/etc/icinga2/conf.d/default-services.conf'
     import:
       - 'generic-service'
       - 'check-by-ssh-service'
-    check_command: 'disk'
     vars:
-      'warning': 85
-      'critical': 95
-      'by_ssh_command': '{{ get_check_command("disk").command }}'
-      'by_ssh_arguments': '{{ get_check_command("disk").arguments }}'
+      'by_ssh_command': '/opt/pixelpark-monitoring-checks system-log'
     apply: true
     assign:
       - 'host.address && (host.name == test-slave01-bmas-gsb6-de.pixelpark.net) && host.vars.os == Solaris'