diff --git a/site-modules/profile/manifests/icinga2/objects/e2e_checks_deposit.pp b/site-modules/profile/manifests/icinga2/objects/e2e_checks_deposit.pp --- a/site-modules/profile/manifests/icinga2/objects/e2e_checks_deposit.pp +++ b/site-modules/profile/manifests/icinga2/objects/e2e_checks_deposit.pp @@ -15,11 +15,16 @@ $zonename = lookup('icinga2::master::zonename') $check_command = "${environment}-check-deposit-cmd" + $prometheus_text_file_directory = lookup('prometheus::node::textfile_directory') ::icinga2::object::checkcommand {$check_command: import => ['plugin-check-command'], command => [ - '/usr/bin/swh', 'icinga_plugins', + '/usr/bin/swh', + 'icinga_plugins', + '--prometheus-exporter', + '--prometheus-exporter-directory', $prometheus_text_file_directory, + '--environment', $environment, '--warning', '600', '--critical', '3600', # explicit the default value of the plugin 'check-deposit', diff --git a/site-modules/profile/manifests/icinga2/objects/e2e_checks_savecodenow.pp b/site-modules/profile/manifests/icinga2/objects/e2e_checks_savecodenow.pp --- a/site-modules/profile/manifests/icinga2/objects/e2e_checks_savecodenow.pp +++ b/site-modules/profile/manifests/icinga2/objects/e2e_checks_savecodenow.pp @@ -10,12 +10,17 @@ $check_command_prefix = "${environment}-check-savecodenow" $zonename = lookup('icinga2::master::zonename') + $prometheus_text_file_directory = lookup('prometheus::node::textfile_directory') $check_command = "${check_command_prefix}-cmd-${origin_name}-${origin_type}" ::icinga2::object::checkcommand {$check_command: import => ['plugin-check-command'], command => [ - '/usr/bin/swh', 'icinga_plugins', + '/usr/bin/swh', + 'icinga_plugins', + '--prometheus-exporter', + '--prometheus-exporter-directory', $prometheus_text_file_directory, + '--environment', $environment, '--warning', '300', '--critical', '600', 'check-savecodenow', diff --git a/site-modules/profile/manifests/icinga2/objects/e2e_checks_vault.pp b/site-modules/profile/manifests/icinga2/objects/e2e_checks_vault.pp --- a/site-modules/profile/manifests/icinga2/objects/e2e_checks_vault.pp +++ b/site-modules/profile/manifests/icinga2/objects/e2e_checks_vault.pp @@ -8,11 +8,16 @@ $check_command = "${environment}-check-vault-cmd" $zonename = lookup('icinga2::master::zonename') + $prometheus_text_file_directory = lookup('prometheus::node::textfile_directory') ::icinga2::object::checkcommand {$check_command: import => ['plugin-check-command'], command => [ - '/usr/bin/swh', 'icinga_plugins', + '/usr/bin/swh', + 'icinga_plugins', + '--prometheus-exporter', + '--prometheus-exporter-directory', $prometheus_text_file_directory, + '--environment', $environment, '--warning', '1200', '--critical', '3600', # explicit the default value of the plugin 'check-vault',