From: Thomas Dalichow Date: Thu, 17 May 2018 13:32:07 +0000 (+0200) Subject: pixelpark - dev-monitoring: change by_ssh_template X-Git-Tag: v0.1.0~1027 X-Git-Url: https://git.uhu-banane.de/?a=commitdiff_plain;h=472543504cea4034a0f91f08099547987b5bc848;p=pixelpark%2Fhiera.git pixelpark - dev-monitoring: change by_ssh_template --- diff --git a/customer/pixelpark/dev-monitoring.pixelpark.com.yaml b/customer/pixelpark/dev-monitoring.pixelpark.com.yaml index 572d78d5..94423832 100644 --- a/customer/pixelpark/dev-monitoring.pixelpark.com.yaml +++ b/customer/pixelpark/dev-monitoring.pixelpark.com.yaml @@ -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'