diff --git a/site-modules/profile/manifests/icinga2/objects/agent_checks.pp b/site-modules/profile/manifests/icinga2/objects/agent_checks.pp --- a/site-modules/profile/manifests/icinga2/objects/agent_checks.pp +++ b/site-modules/profile/manifests/icinga2/objects/agent_checks.pp @@ -83,7 +83,6 @@ 'python3-nagiosplugin', 'python3-systemd', 'monitoring-plugins-basic', - 'monitoring-plugins-systemd', # in swh repository ] package {$packages: ensure => present, @@ -137,6 +136,15 @@ } } + + $plugin_packages = [ + 'monitoring-plugins-systemd', # in swh repository + ] + package {$plugin_packages: + ensure => present, + require => Class['Profile::Swh::Apt_config'] + } + $check_command = "check_systemd" $check_command_path = "${plugin_dir}/${check_command}" ::icinga2::object::checkcommand {$check_command: @@ -149,6 +157,6 @@ }, }, target => $swh_plugin_configfile, - require => Package[$packages], + require => Package[$plugin_packages], } }