Changeset View
Changeset View
Standalone View
Standalone View
site-modules/profile/manifests/swh/deploy/scheduler/journal_client.pp
Show All 26 Lines | class profile::swh::deploy::scheduler::journal_client { | ||||
# | # | ||||
::systemd::unit_file {$unit_name: | ::systemd::unit_file {$unit_name: | ||||
ensure => present, | ensure => present, | ||||
content => template("profile/swh/deploy/journal/${unit_name}.erb"), | content => template("profile/swh/deploy/journal/${unit_name}.erb"), | ||||
} ~> service {$service_name: | } ~> service {$service_name: | ||||
ensure => running, | ensure => running, | ||||
enable => true, | enable => true, | ||||
} | } | ||||
@@::icinga2::object::service {"check_scheduler_journal_client_${::fqdn}": | |||||
import => ['generic-service'], | |||||
name => "Check swh scheduler journal client service ${::fqdn}", | |||||
check_command => "check_systemd", | |||||
host_name => $::fqdn, | |||||
command_endpoint => $::fqdn, | |||||
vars => { | |||||
check_systemd_unit => $unit_name, | |||||
}, | |||||
target => '/etc/icinga2/zones.d/master/exported-checks.conf', | |||||
ardumont: missing `command_endpoint => $::fqdn,` to tell the check to be executed on the machine!
Thanks… | |||||
tag => 'icinga2::exported', | |||||
} | |||||
} | } |
missing command_endpoint => $::fqdn, to tell the check to be executed on the machine!
Thanks @olasd.