]> Frank Brehm's Git Trees - pixelpark/hiera.git/commitdiff
pixelpark - add check_systemd
authorThomas Dalichow <thomas.dalichow@publicispixelpark.de>
Fri, 27 Apr 2018 16:20:41 +0000 (18:20 +0200)
committerThomas Dalichow <thomas.dalichow@publicispixelpark.de>
Fri, 27 Apr 2018 16:20:41 +0000 (18:20 +0200)
customer/pixelpark/dev-monitoring.pixelpark.com.yaml

index 1b9948df88e83199fa3e001f1a7a580896b1da5f..85773c4ac16cb2fc7a5d24db1bffebf4a4ad99ae 100644 (file)
@@ -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':