From: Thomas Dalichow Date: Mon, 7 May 2018 14:57:33 +0000 (+0200) Subject: pixelpark - dev-monitoring: add mailq check X-Git-Tag: v0.1.0~1086^2~14 X-Git-Url: https://git.uhu-banane.de/?a=commitdiff_plain;h=c760fb79ef38af9767d2f0d6e03671aa7f5258aa;p=pixelpark%2Fhiera.git pixelpark - dev-monitoring: add mailq check --- diff --git a/customer/pixelpark/dev-monitoring.pixelpark.com.yaml b/customer/pixelpark/dev-monitoring.pixelpark.com.yaml index c05c8a75..15c27ee0 100644 --- a/customer/pixelpark/dev-monitoring.pixelpark.com.yaml +++ b/customer/pixelpark/dev-monitoring.pixelpark.com.yaml @@ -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