Changeset View
Changeset View
Standalone View
Standalone View
site-modules/profile/manifests/icinga2/objects/e2e_checks_deposit.pp
# swh deposit end-to-end checks on the icinga master | # swh deposit end-to-end checks on the icinga master | ||||
define profile::icinga2::objects::e2e_checks_deposit ( | define profile::icinga2::objects::e2e_checks_deposit ( | ||||
String $deposit_server, | String $deposit_server, | ||||
String $deposit_user, | String $deposit_user, | ||||
String $deposit_pass, | String $deposit_pass, | ||||
String $deposit_collection, | String $deposit_collection, | ||||
Integer $deposit_poll_interval, | Integer $deposit_poll_interval, | ||||
String $deposit_archive, | String $deposit_archive, | ||||
String $deposit_metadata, | String $deposit_metadata, | ||||
String $deposit_provider_url, | String $deposit_provider_url, | ||||
String $deposit_swh_web_url, | String $deposit_swh_web_url, | ||||
String $environment, | String $environment, | ||||
) { | ) { | ||||
include ::profile::icinga2::objects::e2e_checks_base | include ::profile::icinga2::objects::e2e_checks_base | ||||
$zonename = lookup('icinga2::master::zonename') | $zonename = lookup('icinga2::master::zonename') | ||||
$check_command = "${environment}-check-deposit-cmd" | $check_command = "${environment}-check-deposit-cmd" | ||||
ardumont: will the icinga check service have the right permission to write into that directory [1]?
[1]… | |||||
$prometheus_text_file_directory = lookup('prometheus::node::textfile_directory') | |||||
::icinga2::object::checkcommand {$check_command: | ::icinga2::object::checkcommand {$check_command: | ||||
import => ['plugin-check-command'], | import => ['plugin-check-command'], | ||||
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', | '--warning', '600', | ||||
'--critical', '3600', # explicit the default value of the plugin | '--critical', '3600', # explicit the default value of the plugin | ||||
'check-deposit', | 'check-deposit', | ||||
'--server', $deposit_server, | '--server', $deposit_server, | ||||
'--username', $deposit_user, | '--username', $deposit_user, | ||||
'--password', $deposit_pass, | '--password', $deposit_pass, | ||||
'--collection', $deposit_collection, | '--collection', $deposit_collection, | ||||
'--provider-url', $deposit_provider_url, | '--provider-url', $deposit_provider_url, | ||||
Show All 22 Lines |
will the icinga check service have the right permission to write into that directory [1]?
[1]