Changeset View
Changeset View
Standalone View
Standalone View
site-modules/profile/manifests/icinga2/objects/common_checks.pp
Show First 20 Lines • Show All 64 Lines • ▼ Show 20 Lines | vars => { | ||||
apt_timeout => '120', | apt_timeout => '120', | ||||
apt_only_critical => 'true', | apt_only_critical => 'true', | ||||
}, | }, | ||||
assign => ['host.vars.os == Linux'], | assign => ['host.vars.os == Linux'], | ||||
ignore => ['host.vars.noagent'], | ignore => ['host.vars.noagent'], | ||||
target => '/etc/icinga2/zones.d/global-templates/services.conf', | target => '/etc/icinga2/zones.d/global-templates/services.conf', | ||||
} | } | ||||
::icinga2::object::service {'ntp': | |||||
import => ['generic-service'], | |||||
apply => true, | |||||
check_command => 'ntp_peer', | |||||
command_endpoint => 'host.name', | |||||
vars => { | |||||
ntp_address => 'localhost', | |||||
}, | |||||
assign => ['host.vars.os == Linux'], | |||||
ignore => ['host.vars.noagent'], | |||||
target => '/etc/icinga2/zones.d/global-templates/services.conf', | |||||
} | |||||
::icinga2::object::service {'journalbeat': | ::icinga2::object::service {'journalbeat': | ||||
import => ['generic-service'], | import => ['generic-service'], | ||||
apply => true, | apply => true, | ||||
check_command => 'check_journal', | check_command => 'check_journal', | ||||
command_endpoint => 'host.name', | command_endpoint => 'host.name', | ||||
assign => ['host.vars.os == Linux'], | assign => ['host.vars.os == Linux'], | ||||
ignore => ['-:"check_journal" !in host.vars.plugins', 'host.vars.noagent'], | ignore => ['-:"check_journal" !in host.vars.plugins', 'host.vars.noagent'], | ||||
target => '/etc/icinga2/zones.d/global-templates/services.conf', | target => '/etc/icinga2/zones.d/global-templates/services.conf', | ||||
Show All 18 Lines |