Changeset View
Changeset View
Standalone View
Standalone View
site-modules/profile/manifests/icinga2/objects/common_checks.pp
Show First 20 Lines • Show All 73 Lines • ▼ Show 20 Lines | ::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', | ||||
} | } | ||||
::icinga2::object::service {'puppet_agent': | |||||
import => ['generic-service'], | |||||
apply => true, | |||||
check_command => 'file_age', | |||||
command_endpoint => 'host.name', | |||||
vars => { | |||||
file_age_file => '/var/lib/puppet/state/agent_disabled.lock', | |||||
file_age_warning_time => '240', # warning after 4h | |||||
file_age_critical_time => '1440', # critical after 24h | |||||
file_age_ignore_missing => 'true', | |||||
}, | |||||
assign => ['host.vars.os == Linux'], | |||||
ignore => ['host.vars.noagent'], | |||||
target => '/etc/icinga2/zones.d/global-templates/services.conf', | |||||
} | |||||
} | } |