From 1b04e103d33453190fa0b0fa307cb45c1bfa6934 Mon Sep 17 00:00:00 2001 From: Thomas Dalichow Date: Fri, 27 Apr 2018 18:20:41 +0200 Subject: [PATCH] pixelpark - add check_systemd --- .../pixelpark/dev-monitoring.pixelpark.com.yaml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/customer/pixelpark/dev-monitoring.pixelpark.com.yaml b/customer/pixelpark/dev-monitoring.pixelpark.com.yaml index 1b9948df..85773c4a 100644 --- a/customer/pixelpark/dev-monitoring.pixelpark.com.yaml +++ b/customer/pixelpark/dev-monitoring.pixelpark.com.yaml @@ -145,6 +145,17 @@ 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 crond exists, is enabled and is running' + 'systemd-status': + target: '/etc/icinga2/conf.d/default-services.conf' + import: + - 'generic-service' + check_command: 'check_systemd' +#_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, what systemd thinks of the overall system state' # 'disk': # target: '/etc/icinga2/conf.d/default-services.conf' # import: @@ -166,6 +177,11 @@ infra::profile::icinga2::object::checkcommand: - 'ipv4-or-ipv6' command: '/opt/pixelpark-monitoring-checks/check_service crond' target: '/etc/icinga2/conf.d/pixelpark-monitoring-checkcommands.conf' + 'check_systemd': + import: + - 'ipv4-or-ipv6' + command: '/opt/pixelpark-monitoring-checks/check_systemd' + target: '/etc/icinga2/conf.d/pixelpark-monitoring-checkcommands.conf' infra::profile::icinga2::object::hostgroup: 'linux-servers': -- 2.39.5