From: Thomas Dalichow Date: Fri, 27 Apr 2018 16:20:41 +0000 (+0200) Subject: pixelpark - add check_systemd X-Git-Tag: v0.1.0~1176 X-Git-Url: https://git.uhu-banane.de/?a=commitdiff_plain;h=1b04e103d33453190fa0b0fa307cb45c1bfa6934;p=pixelpark%2Fhiera.git pixelpark - add check_systemd --- 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':