diff --git a/manifests/icinga2/objects/static_checks.pp b/manifests/icinga2/objects/static_checks.pp index 45f9b19..7f8c626 100644 --- a/manifests/icinga2/objects/static_checks.pp +++ b/manifests/icinga2/objects/static_checks.pp @@ -1,24 +1,24 @@ # Static checks on the icinga master class profile::icinga2::objects::static_checks { $checks_file = '/etc/icinga2/conf.d/static-checks.conf' ::icinga2::object::host {'www.softwareheritage.org': import => ['generic-host'], target => $checks_file, } ::icinga2::object::service {'Software Heritage Homepage': - import => ['generic-service'], - host_name => 'www.softwareheritage.org', - command => 'http', - vars => { + import => ['generic-service'], + host_name => 'www.softwareheritage.org', + check_command => 'http', + target => $checks_file, + vars => { http_vhost => 'www.softwareheritage.org', http_uri => '/', http_ssl => true, http_sni => true, http_string => 'Software Heritage', }, - target => $checks_file, } }