Changeset View
Changeset View
Standalone View
Standalone View
site-modules/profile/manifests/icinga2/objects/common_checks.pp
# Icinga2 common check definitions | # Icinga2 common check definitions | ||||
class profile::icinga2::objects::common_checks { | class profile::icinga2::objects::common_checks { | ||||
$service_configuration = lookup('icinga2::service_configuration') | $service_configuration = lookup('icinga2::service_configuration') | ||||
$target_file = '/etc/icinga2/zones.d/global-templates/services.conf' | $target_file = '/etc/icinga2/zones.d/global-templates/services.conf' | ||||
# Done locally on the master | # Done locally on the master | ||||
::icinga2::object::service {'ping4': | ::icinga2::object::service {'ping4': | ||||
import => ['generic-service'], | import => ['generic-service'], | ||||
apply => true, | apply => true, | ||||
check_command => 'ping4', | check_command => 'ping4', | ||||
assign => ['host.address'], | assign => ['host.address'], | ||||
ignore => ['host.vars.noping'], | |||||
target => $target_file, | target => $target_file, | ||||
} | } | ||||
::icinga2::object::service {'linux-ssh': | ::icinga2::object::service {'linux-ssh': | ||||
import => ['generic-service'], | import => ['generic-service'], | ||||
apply => true, | apply => true, | ||||
check_command => 'ssh', | check_command => 'ssh', | ||||
assign => ['host.vars.os == Linux'], | assign => ['host.vars.os == Linux'], | ||||
▲ Show 20 Lines • Show All 129 Lines • Show Last 20 Lines |