diff --git a/site-modules/profile/manifests/icinga2/objects/e2e_checks_vault.pp b/site-modules/profile/manifests/icinga2/objects/e2e_checks_vault.pp index 0a3446c8..209d5d11 100644 --- a/site-modules/profile/manifests/icinga2/objects/e2e_checks_vault.pp +++ b/site-modules/profile/manifests/icinga2/objects/e2e_checks_vault.pp @@ -1,32 +1,36 @@ # swh vault end-to-end checks on the icinga master define profile::icinga2::objects::e2e_checks_vault ( String $server_vault, String $server_webapp, String $environment, ) { include ::profile::icinga2::objects::e2e_checks_base $check_command = "${environment}-check-vault-cmd" $zonename = lookup('icinga2::master::zonename') ::icinga2::object::checkcommand {$check_command: import => ['plugin-check-command'], command => [ - '/usr/bin/swh', 'icinga_plugins', 'check-vault', + '/usr/bin/swh', 'icinga_plugins', + '--warning', '1200', + '--critical', '3600', # explicit the default value of the plugin + 'check-vault', '--swh-storage-url', $server_vault, '--swh-web-url', $server_webapp, 'directory' ], target => $::profile::icinga2::objects::e2e_checks_base::check_file, require => Package[$::profile::icinga2::objects::e2e_checks_base::packages], + timeout => 4800, # higher than the critical threshold } ::icinga2::object::service {"${environment}-check-vault": import => ['generic-service-check-e2e'], service_name => "${environment} Check vault end-to-end", check_command => $check_command, target => "/etc/icinga2/zones.d/${zonename}/${::fqdn}.conf", host_name => "${::fqdn}", } }