From: Thomas Dalichow Date: Mon, 7 May 2018 16:17:01 +0000 (+0200) Subject: pixelpark - dev-monitoring: add check_ntp_peer X-Git-Tag: v0.1.0~1086^2~10^2 X-Git-Url: https://git.uhu-banane.de/?a=commitdiff_plain;h=db313613330c1c0acbf88a2c6a8a8563f0d383c5;p=pixelpark%2Fhiera.git pixelpark - dev-monitoring: add check_ntp_peer --- diff --git a/customer/pixelpark/dev-monitoring.pixelpark.com.yaml b/customer/pixelpark/dev-monitoring.pixelpark.com.yaml index 2cd44315..cb005766 100644 --- a/customer/pixelpark/dev-monitoring.pixelpark.com.yaml +++ b/customer/pixelpark/dev-monitoring.pixelpark.com.yaml @@ -192,7 +192,22 @@ infra::profile::icinga2::object::service: 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' + notes: 'This checks, whether the mail queue contains mails' + 'ntp-status': + target: '/etc/icinga2/conf.d/default-services.conf' + import: + - 'generic-service' + check_command: 'ntp_peer' + vars: + 'ntp_peer_warning': 1 + 'ntp_peer_critical': 5 + 'ntp_peer_host': 'time.pixelpark.com' +#_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 the time difference to time.pixelpark.com' # 'disk': # target: '/etc/icinga2/conf.d/default-services.conf' # import: