From: Thomas Dalichow Date: Wed, 9 May 2018 13:37:28 +0000 (+0200) Subject: pixelpark - dev-monitoring: add check_swap X-Git-Tag: v0.1.0~1072 X-Git-Url: https://git.uhu-banane.de/?a=commitdiff_plain;h=62d99c45fcd89b117a0b4aaa4eed4900a1bf6674;p=pixelpark%2Fhiera.git pixelpark - dev-monitoring: add check_swap --- diff --git a/customer/pixelpark/dev-monitoring.pixelpark.com.yaml b/customer/pixelpark/dev-monitoring.pixelpark.com.yaml index c633620e..a7706eaf 100644 --- a/customer/pixelpark/dev-monitoring.pixelpark.com.yaml +++ b/customer/pixelpark/dev-monitoring.pixelpark.com.yaml @@ -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: